BUGFIX: don't show schweinchen in poverty games during pre-game phase
authorArun Persaud <arun@nubati.net>
Tue, 22 Feb 2011 06:45:32 +0000 (22:45 -0800)
committerArun Persaud <apersaud@lbl.gov>
Tue, 22 Feb 2011 06:45:32 +0000 (22:45 -0800)
after exchanging cards schweinchen was shown during the pre-game phase

include/game.php

index d5735036856951ab6279f4fee103475a6ec38c39..18d58193a697f838ae1d1669aacd15c8dd816d7e 100644 (file)
@@ -79,6 +79,9 @@ if( $gamestatus == 'pre' )
   {
     /* always need to use Schweinchen to figure out for example who has poverty */
     $ok=1;
   {
     /* 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
   {
   }
 else
   {