From 661cdf100d59bb0d7ee3ade0d392efa68aba1a19 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 29 Mar 2008 10:45:59 -0700 Subject: BUGFIX: a comment for schweinchen was issued even in solo games without schweinchen fixed the comment issue and also added trump solo to games where schweinchen will count Signed-off-by: Arun Persaud --- index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index f212cf3..0f94dcf 100644 --- a/index.php +++ b/index.php @@ -1381,8 +1381,12 @@ else if(myisset("me")) $playid = DB_play_card($trickid,$handcardid,$sequence); - /* check for schweinchen */ - if($GAME["schweinchen"] && ($card == 19 || $card == 20) ) + /* check special output for schweinchen in case: + * schweinchen is in the rules, a fox has been played and the gametype is correct + */ + if( $GAME["schweinchen"] && + ($card == 19 || $card == 20) && + ($gametype == "normal" || $gametype == "silent"|| $gametype=="trump")) { $GAME["schweinchen"]++; // count how many have been played including this one if($GAME["schweinchen"]==3 && $RULES["schweinchen"]=="second" ) -- cgit v1.2.3-18-g5258