diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-15 16:28:05 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-15 16:28:05 +0100 |
commit | 1ac83c4fc1d3ae63d29ae67b2569ebbb4126d154 (patch) | |
tree | d9744f23b41b54d8a81f7e1f585727217c007e0d /src/player.c | |
parent | ab1e055e35bf8b1dbaf2ed15f7404b525f016b3c (diff) | |
download | gold-mine-run-1ac83c4fc1d3ae63d29ae67b2569ebbb4126d154.tar.gz gold-mine-run-1ac83c4fc1d3ae63d29ae67b2569ebbb4126d154.zip |
Prevent death when the stage is complete
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c index cf8978c..15e7c8e 100644 --- a/src/player.c +++ b/src/player.c @@ -327,6 +327,9 @@ uint8_t player_collision_pickup(Entity *e) void player_hit() { + if (is_stageclear()) + return; + if (use_pickaxe()) { invuln = INVULN_TIME; |