diff options
author | Arun Persaud <arun@nubati.net> | 2008-05-19 18:54:18 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-05-19 18:54:18 -0700 |
commit | 853c2a611637ab3abf65feb86b4b5f96c1749cb9 (patch) | |
tree | a68800211feb4efd0a0a7bf40ea39ed9a884a631 | |
parent | a40c1ed8a796ad846a254da83a83ae92c3184228 (diff) | |
download | e-DoKo-853c2a611637ab3abf65feb86b4b5f96c1749cb9.tar.gz e-DoKo-853c2a611637ab3abf65feb86b4b5f96c1749cb9.tar.bz2 e-DoKo-853c2a611637ab3abf65feb86b4b5f96c1749cb9.zip |
BUGFIX: setting the gametype gave away information in case someone wanted to play solo.
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>
-rw-r--r-- | include/game.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/game.php b/include/game.php index a90d8b2..7905acd 100644 --- a/include/game.php +++ b/include/game.php @@ -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"; |