aboutsummaryrefslogtreecommitdiff
path: root/player.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-06 15:50:31 +1000
committerquou <quou@disroot.org>2023-05-06 15:50:31 +1000
commitec51d32ea0a30c138e690f637f38d83c086e02b9 (patch)
tree95570a567cc34ef5255a845391178d8649cd56a4 /player.c
parent9e28af25b8fb5c9474ccbec2bd4dff26f1871075 (diff)
Add the main mechanic.
Diffstat (limited to 'player.c')
-rw-r--r--player.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player.c b/player.c
index 4a82cff..7135557 100644
--- a/player.c
+++ b/player.c
@@ -130,6 +130,7 @@ void update_player(Player* player, World* world) {
}
if (player->hp <= 0) {
+ world->oom = 0;
game_change_state(&game, game_state_dead);
}