diff options
author | Arun Persaud <arun@nubati.net> | 2008-05-17 11:02:37 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-05-17 11:02:37 -0700 |
commit | f7037807083af50fcbf136cfbf18b617342d7c4e (patch) | |
tree | 88e844f2560d964fe85ae45b1cb287557540ae53 /include/functions.php | |
parent | b5dc679f1b8166fe6d6b37b6b18149700c7cab91 (diff) | |
download | e-DoKo-f7037807083af50fcbf136cfbf18b617342d7c4e.tar.gz e-DoKo-f7037807083af50fcbf136cfbf18b617342d7c4e.tar.bz2 e-DoKo-f7037807083af50fcbf136cfbf18b617342d7c4e.zip |
CLEANUP: rewrote code for Schweinchen
should be easier to add some new features now.
Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php index dca9640..fdb461e 100644 --- a/include/functions.php +++ b/include/functions.php @@ -171,14 +171,14 @@ function compare_cards($a,$b,$game) case "normal": case "silent": case "trump": - if($RULES["schweinchen"]=="both" && $GAME["schweinchen"]) + if($RULES['schweinchen']=='both' && $GAME['schweinchen-who']) { if($a == 19 || $a == 20 ) return 1; if($b == 19 || $b == 20 ) return 0; }; - if($RULES["schweinchen"]=="second" && $GAME["schweinchen"]==3) + if($RULES['schweinchen']=='second' && $GAME['schweinchen-second']) { if($a == 19 || $a == 20 ) return 1; @@ -705,7 +705,7 @@ function display_table () /* add hints for poverty, wedding, solo, etc */ if( $gametype != "solo") - if($GAME["schweinchen"] && $RULES["schweinchen"]=="both" && $GAME["schweinchen-who"]==$hash) + if( $RULES["schweinchen"]=="both" && $GAME["schweinchen-who"]==$hash ) echo " Schweinchen. <br />"; if($GT=="poverty" && $party=="re") |