Mercurial > mm7
changeset 2476:faf21e357a83
mistake in goto cleaning
author | zipi |
---|---|
date | Thu, 21 Aug 2014 21:26:47 +0100 |
parents | acac52e9e36a |
children | e54f5bfe8f1a |
files | Arcomage.cpp |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Arcomage.cpp Thu Aug 21 11:24:51 2014 +0600 +++ b/Arcomage.cpp Thu Aug 21 21:26:47 2014 +0100 @@ -1082,13 +1082,15 @@ while ( 1 ) { byte_4FAA24 = PlayerTurn(current_player_num); - if ( GetPlayerHandCardCount(current_player_num) <= minimum_cards_at_hand ) - break; + if (GetPlayerHandCardCount(current_player_num) <= minimum_cards_at_hand) + { + need_to_discard_card = 0; + break; + } need_to_discard_card = 1; if (pArcomageGame->field_F4) - continue; + break; } - need_to_discard_card = 0; } pArcomageGame->GameOver = IsGameOver(); if ( !pArcomageGame->GameOver )