X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=91cf53cd85dc48caea54a3442a1f549981c69be3;hb=f86c5a3da4db71469a15dea60bc9d817b61873e3;hp=6fdf64dd65ea8a88f76eba17b958e69ff5de4e3a;hpb=c5f862d7fbe0458d0bf66fbac37af9ac0e61dfcf;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index 6fdf64d..91cf53c 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -438,7 +438,7 @@ function bin5_index_wr_main(&$bri, $remote_addr_full, $get, $post, $cookie) log_wr("CIC".$loggo); /* se era il suo turno e la carta era sua ed era in mano */ - if ($a_play >=0 && $a_play < (BIN5_PLAYERS_N == 5 ? 40 : 24) && + if ($a_play >=0 && $a_play < (BIN5_CARD_HAND * BIN5_PLAYERS_N) && ($user->table_pos == (($table->gstart + $table->turn) % BIN5_PLAYERS_N)) && $table->card[$a_play]->stat == 'hand' && $table->card[$a_play]->owner == $user->table_pos) { @@ -462,7 +462,7 @@ function bin5_index_wr_main(&$bri, $remote_addr_full, $get, $post, $cookie) $player_nex = $card_play . "is_my_time = true; remark_on();"; $player_oth = $card_play; } - else if ($table->turn <= (BIN5_PLAYERS_N * 8)) { /* manche finished */ + else if ($table->turn <= (BIN5_PLAYERS_N * BIN5_CARD_HAND)) { /* manche finished */ $winner = calculate_winner($table); log_wr("GSTART 3"); $table->gstart = $winner; @@ -475,7 +475,7 @@ function bin5_index_wr_main(&$bri, $remote_addr_full, $get, $post, $cookie) $player_nex = $card_play . $card_take; else $player_nex = ""; - if ($table->turn < (BIN5_PLAYERS_N * 8)) /* game NOT finished */ + if ($table->turn < (BIN5_PLAYERS_N * BIN5_CARD_HAND)) /* game NOT finished */ $player_nex .= "is_my_time = true; remark_on();"; $player_oth = $card_play . $card_take; } @@ -500,7 +500,7 @@ function bin5_index_wr_main(&$bri, $remote_addr_full, $get, $post, $cookie) $retar[$i] = $ret; } - if ($table->turn == (BIN5_PLAYERS_N * 8)) { /* game finished */ + if ($table->turn == (BIN5_PLAYERS_N * BIN5_CARD_HAND)) { /* game finished */ log_wr(sprintf("GIOCO FINITO !!!"));