BUGIFX: more accurate display of whos turn it is
authorArun Persaud <arun@nubati.net>
Fri, 23 May 2008 04:43:00 +0000 (21:43 -0700)
committerArun Persaud <arun@nubati.net>
Fri, 23 May 2008 04:43:00 +0000 (21:43 -0700)
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>
include/game.php

index 7905acd63a00a9d1e5ae7619711e5a0d520e85a7..b8a2fcb2dc2e88c4b6e187a2ce264aff35c7e836 100644 (file)
@@ -189,6 +189,7 @@ switch($mystatus)
                    /* whos turn is it? */
                    DB_set_player_by_gameid($gameid,$user);
                    $ok = 0;
                    /* whos turn is it? */
                    DB_set_player_by_gameid($gameid,$user);
                    $ok = 0;
+                   break;
                  }
              };
            if($ok)
                  }
              };
            if($ok)
@@ -380,6 +381,7 @@ switch($mystatus)
          {
            $ok = 0;
            DB_set_player_by_gameid($gameid,$user);
          {
            $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);
              {
                $ok = 0;
                DB_set_player_by_gameid($gameid,$user);
+               break;
              }
          }
        if($ok)
              }
          }
        if($ok)