X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fbriskin5.phh;h=e2cffa9fe7909c213c2c3c1b47cd5dcd8acec889;hb=9878243b4e002b50ee444cf906b9e13faba4fe01;hp=fb696cbf2262c2a8cf4c17b084022bff7cdec774;hpb=152b9a21a2a057869ed1f459ad375c9cb3396ea5;p=brisk.git diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index fb696cb..e2cffa9 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -525,7 +525,7 @@ class Bin5_table extends Table { $game_delta = 1; // $this->game_next(1); - $this->game_init(&$bri->user); + $this->game_init($bri->user); } else if ($action == BIN5_RULES_ABANDON) { // return TRUE if all correct if (!($user->handpt <= 2)) { @@ -544,7 +544,7 @@ class Bin5_table extends Table { // Non si cambia mazzo se si abbandona la partita $game_delta = 0; // $this->game_next(0); - $this->game_init(&$bri->user); + $this->game_init($bri->user); } else if ($action == BIN5_RULES_FINISH) { // return TRUE if all correct $this->old_act = $action; @@ -661,7 +661,7 @@ class Bin5_table extends Table { log_points($user->ip, $curtime, $user, "STAT:BRISKIN5:FINISH_GAME", $plist); } - $this->game_init(&$bri->user); + $this->game_init($bri->user); return (TRUE); } @@ -763,7 +763,7 @@ class Bin5_table extends Table { $this->mazzo = $match_data['mazzo_next']; $this->mult = $match_data['mult_next']; $this->match_id = $match_id; - $this->game_init(&$bri->user); + $this->game_init($bri->user); /* reload of the page with the new layout */ for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) { @@ -779,7 +779,7 @@ class Bin5_table extends Table { $user_cur->comm[$user_cur->step % COMM_N] = ""; $user_cur->step_inc(); - $user_cur->comm[$user_cur->step % COMM_N] = show_table(&$bri, &$user_cur, $user_cur->step+1, TRUE, FALSE); + $user_cur->comm[$user_cur->step % COMM_N] = show_table($bri, $user_cur, $user_cur->step+1, TRUE, FALSE); $user_cur->step_inc(); } return (TRUE); @@ -1069,7 +1069,7 @@ class Bin5_user extends User { log_load("RESYNC"); /* NOTE: $this->room is associated with the current $bri object */ printf("xXx CLASS NAME [%s]\n", get_class($this->room)); - $ret = show_table(&$this->room, $this, $this->step, FALSE, FALSE); + $ret = show_table($this->room, $this, $this->step, FALSE, FALSE); } log_rd2("NEWSTAT: ".$this->stat); @@ -1172,7 +1172,7 @@ class Bin5 { $user[$table->player[$i]]->table_token = $table_token; $this->user[$i] = Bin5_user::spawn($user[$table->player[$i]], $this, $table_idx, $i, $get, $post, $cookie); } - $this->table[0] = Bin5_table::spawn(&$table); + $this->table[0] = Bin5_table::spawn($table); log_main("TABLE_OLD_WIN - Bin5:".$this->table[0]->old_asta_win); @@ -1265,7 +1265,7 @@ class Bin5 { $user_cur->the_end = TRUE; /* se gli altri utenti non erano d'accordo questo utente viene bannato */ - $remcalc = $this->table[0]->exitlock_calc(&$this->user, $user_cur->table_pos); + $remcalc = $this->table[0]->exitlock_calc($this->user, $user_cur->table_pos); if ($remcalc < 3) { require_once("${G_base}Obj/hardban.phh"); Hardbans::add(($user_cur->is_auth() ? $user_cur->name : FALSE), @@ -1609,7 +1609,7 @@ function show_table(&$bri, &$user, $sendstep, $is_transition, $is_again) $table_pos = $user->table_pos; $ret = "table_init();"; - $ret .= $table->exitlock_show(&$bri->user, $table_pos); + $ret .= $table->exitlock_show($bri->user, $table_pos); if (!$is_again) { /* GENERAL STATUS */ $ret .= sprintf( 'gst.st = %d; stat = "%s"; subst = "%s"; table_pos = %d;', @@ -1640,7 +1640,7 @@ function show_table(&$bri, &$user, $sendstep, $is_transition, $is_again) } /* NOTIFY FOR THE CARD MAKER */ if ($is_transition) { // && $user->subst == "asta" superfluo - $ret .= show_table_info(&$bri, &$table, $table_pos); + $ret .= show_table_info($bri, $table, $table_pos); $ret .= "setTimeout(preload_images, 500, g_preload_img_arr, g_imgct);"; } else {