summaryrefslogtreecommitdiffstats
path: root/include/game.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-05-22 21:43:00 -0700
committerArun Persaud <arun@nubati.net>2008-05-22 21:43:00 -0700
commit27e1cfa401e4223550f8a8cc434ae0f4605bf775 (patch)
tree6af5661b84dd55ba57cd9f1e598655d015f2dc98 /include/game.php
parent5bb89f347f1a0e264ac0bd6541e49f248f265fc0 (diff)
downloade-DoKo-27e1cfa401e4223550f8a8cc434ae0f4605bf775.tar.gz
e-DoKo-27e1cfa401e4223550f8a8cc434ae0f4605bf775.tar.bz2
e-DoKo-27e1cfa401e4223550f8a8cc434ae0f4605bf775.zip
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 <arun@nubati.net>
Diffstat (limited to 'include/game.php')
-rw-r--r--include/game.php3
1 files changed, 3 insertions, 0 deletions
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)