diff options
author | Arun Persaud <arun@nubati.net> | 2008-03-29 10:45:59 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-03-29 10:53:04 -0700 |
commit | 661cdf100d59bb0d7ee3ade0d392efa68aba1a19 (patch) | |
tree | 9e54bff0d1f392685647eba5f8a6a94a3740b087 /index.php | |
parent | d1e0b371bfc49d0e6a73631621d7881e305f37e3 (diff) | |
download | e-DoKo-661cdf100d59bb0d7ee3ade0d392efa68aba1a19.tar.gz e-DoKo-661cdf100d59bb0d7ee3ade0d392efa68aba1a19.tar.bz2 e-DoKo-661cdf100d59bb0d7ee3ade0d392efa68aba1a19.zip |
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 <arun@nubati.net>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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" ) |