BUGFIX: 9-cards rule for re/contra: couldn't call <=60 with more than 9 cards and...
authorArun Persaud <arun@nubati.net>
Sun, 7 Nov 2010 18:13:13 +0000 (10:13 -0800)
committerArun 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

index af2b3e50629d9a02025aa6bab9fcb99d3d59b360..5343d369d8295fea15339672449b8000ee2539a9 100644 (file)
@@ -856,12 +856,12 @@ function can_call($what,$hash)
        }
       else if ( 9 == ($NRcards + $offset))
        {
        }
       else if ( 9 == ($NRcards + $offset))
        {
-         if( ($mincall>=0 && $mincall==120) )
+         if( ($mincall>=0 && $mincall<=120 && $what<=90 ) )
            return 2;
        }
       else if ( 9 < ($NRcards + $offset))
        {
            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))
            return 1;
        }
       else if ( 6 == ($NRcards + $offset))