projects
/
e-DoKo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
787e92a
)
BUGFIX: 9-cards rule for re/contra: couldn't call <=60 with more than 9 cards and...
author
Arun Persaud
<arun@nubati.net>
Sun, 7 Nov 2010 18:13:13 +0000
(10:13 -0800)
committer
Arun Persaud
<arun@nubati.net>
Sun, 7 Nov 2010 18:13:13 +0000
(10:13 -0800)
only this special case was wrong, everything else looks ok.
include/functions.php
patch
|
blob
|
history
diff --git
a/include/functions.php
b/include/functions.php
index af2b3e50629d9a02025aa6bab9fcb99d3d59b360..5343d369d8295fea15339672449b8000ee2539a9 100644
(file)
--- 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))