From f7037807083af50fcbf136cfbf18b617342d7c4e Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 17 May 2008 11:02:37 -0700 Subject: CLEANUP: rewrote code for Schweinchen should be easier to add some new features now. Signed-off-by: Arun Persaud --- include/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/functions.php') 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.
"; if($GT=="poverty" && $party=="re") -- cgit v1.2.3-18-g5258