From: Christian Heller Date: Thu, 13 Nov 2014 20:57:39 +0000 (+0100) Subject: Server: Don't continue turn after player has died. X-Git-Tag: tce~606 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/day_todos?a=commitdiff_plain;h=b2bca567a447d04e7fc9696fa69715185f17bd19;p=plomrogue Server: Don't continue turn after player has died. --- diff --git a/src/server/run.c b/src/server/run.c index ea8d608..4f93669 100644 --- a/src/server/run.c +++ b/src/server/run.c @@ -253,11 +253,9 @@ static void turn_over() { struct Thing * player = get_player(); struct Thing * thing = player; - uint16_t start_turn = world.turn; int16_t * whitelist = build_whitelist(); - while ( 0 < player->lifepoints - || (0 == player->lifepoints && start_turn == world.turn)) - { /* TODO: check meaning and refactorability of 2nd condition */ + while (0 < player->lifepoints) + { if (!thing) { world.turn++;