From ec51d32ea0a30c138e690f637f38d83c086e02b9 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 6 May 2023 15:50:31 +1000 Subject: Add the main mechanic. --- player.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player.c') 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); } -- cgit v1.2.3-54-g00ecf