From: Arun Persaud Date: Sun, 7 Nov 2010 18:13:13 +0000 (-0800) Subject: BUGFIX: 9-cards rule for re/contra: couldn't call <=60 with more than 9 cards and... X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d421f362b8318cd7d016723da4f735fd6fa90a96;p=e-DoKo.git 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. --- 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))