X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=functions.php;h=997ba43e154af02582aa59ff981015d2e85628fa;hp=418591dd2d04537a3cb9582a9ee3e745f5871fa8;hb=e68d4598c0d0a5e1f138b9c891f5c1c9ae0e8541;hpb=d638a4e1d0c15ce749430e546d695827c04979f1 diff --git a/functions.php b/functions.php index 418591d..997ba43 100644 --- a/functions.php +++ b/functions.php @@ -656,7 +656,7 @@ function can_call($what,$hash) $gameid = DB_get_gameid_by_hash($hash); $gametype = DB_get_gametype_by_gameid($gameid); - $NRcards = count(DB_get_hand($me)); + $NRcards = count(DB_get_hand($hash)); $NRallcards = 0; for ($i=1;$i<5;$i++) @@ -681,7 +681,7 @@ function can_call($what,$hash) return 1; break; case "5th-card": - if( 27+4*($what/30)) <= $NRallcards + $offset*4) + if( 27+4*($what/30) <= $NRallcards + $offset*4) return 1; break; case "9-cards":