summaryrefslogtreecommitdiffstats
path: root/include/game.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2011-02-21 22:45:32 -0800
committerArun Persaud <apersaud@lbl.gov>2011-02-21 22:45:32 -0800
commite2ced42562672ea0816aca6b139242bdc828b431 (patch)
treed528f31ca9d8138b542fcda6149429aaf23822f1 /include/game.php
parent9d2e48f960548296e71256a282bbf2bec3efbd47 (diff)
downloade-DoKo-e2ced42562672ea0816aca6b139242bdc828b431.tar.gz
e-DoKo-e2ced42562672ea0816aca6b139242bdc828b431.tar.bz2
e-DoKo-e2ced42562672ea0816aca6b139242bdc828b431.zip
BUGFIX: don't show schweinchen in poverty games during pre-game phase
after exchanging cards schweinchen was shown during the pre-game phase
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 d573503..18d5819 100644
--- a/include/game.php
+++ b/include/game.php
@@ -79,6 +79,9 @@ if( $gamestatus == 'pre' )
{
/* always need to use Schweinchen to figure out for example who has poverty */
$ok=1;
+ /* unless the gametype is set and we know that we are in poverty were schweinchen is not valid */
+ if( in_array( $gametype,array('poverty','dpoverty') ))
+ $ok=0;
}
else
{