From: Arun Persaud Date: Tue, 22 Feb 2011 06:45:32 +0000 (-0800) Subject: BUGFIX: don't show schweinchen in poverty games during pre-game phase X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2ced42562672ea0816aca6b139242bdc828b431;p=e-DoKo.git BUGFIX: don't show schweinchen in poverty games during pre-game phase after exchanging cards schweinchen was shown during the pre-game phase --- 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 {