diff options
author | Arun Persaud <arun@nubati.net> | 2010-11-07 10:13:13 -0800 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2010-11-07 10:13:13 -0800 |
commit | d421f362b8318cd7d016723da4f735fd6fa90a96 (patch) | |
tree | 11f204bf68c646c064b5ce0ae343fd7b30246dd1 /include/functions.php | |
parent | 787e92af6d8af34b9f7b73b80b81346a8ed43888 (diff) | |
download | e-DoKo-d421f362b8318cd7d016723da4f735fd6fa90a96.tar.gz e-DoKo-d421f362b8318cd7d016723da4f735fd6fa90a96.tar.bz2 e-DoKo-d421f362b8318cd7d016723da4f735fd6fa90a96.zip |
BUGFIX: 9-cards rule for re/contra: couldn't call <=60 with more than 9 cards and no90 called
only this special case was wrong, everything else looks ok.
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php index af2b3e5..5343d36 100644 --- a/include/functions.php +++ b/include/functions.php @@ -856,12 +856,12 @@ function can_call($what,$hash) } else if ( 9 == ($NRcards + $offset)) { - if( ($mincall>=0 && $mincall==120) ) + if( ($mincall>=0 && $mincall<=120 && $what<=90 ) ) return 2; } else if ( 9 < ($NRcards + $offset)) { - if( ($mincall>=0 && $mincall==120) ) + if( ($mincall>=0 && $mincall<=120 && $what<=90 ) ) return 1; } else if ( 6 == ($NRcards + $offset)) |