summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-11-07 10:13:13 -0800
committerArun Persaud <arun@nubati.net>2010-11-07 10:13:13 -0800
commitd421f362b8318cd7d016723da4f735fd6fa90a96 (patch)
tree11f204bf68c646c064b5ce0ae343fd7b30246dd1
parent787e92af6d8af34b9f7b73b80b81346a8ed43888 (diff)
downloade-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.
-rw-r--r--include/functions.php4
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))