From: Arun Persaud Date: Fri, 23 May 2008 04:43:00 +0000 (-0700) Subject: BUGIFX: more accurate display of whos turn it is X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=27e1cfa401e4223550f8a8cc434ae0f4605bf775 BUGIFX: more accurate display of whos turn it is forgot some breaks when looping over all players, so that the player was set to someone that needed to do something, but not to the player closest to the dealer, but furthest away from him. Signed-off-by: Arun Persaud --- diff --git a/include/game.php b/include/game.php index 7905acd..b8a2fcb 100644 --- a/include/game.php +++ b/include/game.php @@ -189,6 +189,7 @@ switch($mystatus) /* whos turn is it? */ DB_set_player_by_gameid($gameid,$user); $ok = 0; + break; } }; if($ok) @@ -380,6 +381,7 @@ switch($mystatus) { $ok = 0; DB_set_player_by_gameid($gameid,$user); + break; } }; @@ -907,6 +909,7 @@ switch($mystatus) { $ok = 0; DB_set_player_by_gameid($gameid,$user); + break; } } if($ok)