BUGFIX: setting the gametype gave away information in case someone wanted to play...
authorArun Persaud <arun@nubati.net>
Tue, 20 May 2008 01:54:18 +0000 (18:54 -0700)
committerArun Persaud <arun@nubati.net>
Tue, 20 May 2008 01:54:18 +0000 (18:54 -0700)
setting the gametype to what was stored in the DB sorted the hands of everyone according to the gametype. This showed for example if someone wanted to play a solo, since then everybodys cards where ordered like that... changed it now, so that for the pre-game phase the cards are ordered for normal games.

Signed-off-by: Arun Persaud <arun@nubati.net>
include/game.php

index a90d8b2dea1418bfdd3be82a2461a92a7b216dc0..7905acd63a00a9d1e5ae7619711e5a0d520e85a7 100644 (file)
@@ -98,7 +98,11 @@ if($ok)
 }
 /* end check for Schweinchen */
 
-set_gametype($gametype); /* this sets the $CARDS variable */
+/* set the $CARDS variable, needed for sorting the cards
+ * we set it to normal so that the pre-game phase is handled ok
+ * and later set it to the correct game type that is played
+ */
+set_gametype('normal');
 
 /* put everyting in a form */
 echo "<form action=\"index.php?action=game&me=$me\" method=\"post\">\n";