projects
/
e-DoKo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d2e48f
)
BUGFIX: don't show schweinchen in poverty games during pre-game phase
author
Arun Persaud
<arun@nubati.net>
Tue, 22 Feb 2011 06:45:32 +0000
(22:45 -0800)
committer
Arun 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
patch
|
blob
|
history
diff --git
a/include/game.php
b/include/game.php
index d5735036856951ab6279f4fee103475a6ec38c39..18d58193a697f838ae1d1669aacd15c8dd816d7e 100644
(file)
--- 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
{