From 784d7ebf2b75bc4d96ed0d1a04bc902ef9c1c580 Mon Sep 17 00:00:00 2001 From: howard9199 <53228984+howard9199@users.noreply.github.com> Date: Sun, 10 Jul 2022 00:08:43 +0800 Subject: [PATCH] fix/dynamite hp <= 0 (#161) --- src/core/game.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/game.h b/src/core/game.h index 1c571f9..36f1a2c 100644 --- a/src/core/game.h +++ b/src/core/game.h @@ -122,7 +122,7 @@ void game_next(Game *game) { respond_all_chat("Will the dynamite explode?"); dynamite_judge(game, player->id); died_player(game, -1, player->id); - if (game->finished) return; + if (game->finished || player->hp <= 0) return; } if (player->jail != NULL) { DEBUG_PRINT("judge: jail\n");