From 853c2a611637ab3abf65feb86b4b5f96c1749cb9 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Mon, 19 May 2008 18:54:18 -0700 Subject: [PATCH 1/1] 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 --- include/game.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 "
\n"; -- 2.25.1