- /* reset users table order */
- for ($i = 0 ; $i < BIN5_PLAYERS_N - 1 ; $i++) {
- if ($bri->user[$this->player[$i]]->code == $ucodes[$i]) {
- continue;
- }
- for ($e = $i + 1 ; $e < BIN5_PLAYERS_N ; $e++) {
- if ($bri->user[$this->player[$e]]->code == $ucodes[$i]) {
- $swap = $this->player[$i];
- $this->player[$i] = $this->player[$e];
- $this->player[$e] = $swap;
- $bri->user[$this->player[$i]]->table_pos = $i;
- $bri->user[$this->player[$e]]->table_pos = $e;
- }
- }
- }
- for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) {
- fprintf(STDERR, "USERZ: [%s]\n", $bri->user[$this->player[$i]]->name);
- }
-
- // update database info to be aligned with current table (ttok and table_idx
- if (($bdb = BriskDB::create()) != FALSE) {
- if ($bdb->match_continue($match_id, $this, $user->table_orig) == FALSE) {
- unset($bdb);
- $msg = "aggiornamento dei dati della partita fallito";
- break;
- }
- unset($bdb);
- }
-