X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fbriskin5.phh;h=06f737e9e94fe76c221fe2d0fe7c152b140377a9;hb=44f4d1b333ecb3cc3c3666cc5acb2422edcf029d;hp=0c36306bbdc1e538322907493427c6fa5e36fdc8;hpb=9cbf3bfaad0cad7feaf6413eb53df0a1475c6303;p=brisk.git diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 0c36306..06f737e 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -323,7 +323,7 @@ class Table_briskin5 extends Table { log_main("bunch_make end"); } - function init(&$userarr) + function init($userarr) { /* MOVED INTO SPAWN $this->mazzo = rand(0,PLAYERS_N-1); @@ -334,14 +334,14 @@ class Table_briskin5 extends Table { */ for ($i = 0 ; $i < BRISKIN5_PLAYERS_N ; $i++) { $this->total[$i] = 0; - $user_cur = &$userarr[$this->player[$i]]; + $user_cur = $userarr[$this->player[$i]]; $user_cur->exitislock = TRUE; } log_main("table::init: ci siamo"); } - function game_init(&$userarr) + function game_init($userarr) { log_rd2("GSTART 4"); @@ -359,7 +359,7 @@ class Table_briskin5 extends Table { for ($i = 0 ; $i < BRISKIN5_PLAYERS_N ; $i++) { $this->asta_pla[$i] = TRUE; - $user_cur = &$userarr[$this->player[$i]]; + $user_cur = $userarr[$this->player[$i]]; $user_cur->subst = 'asta'; $user_cur->asta_card = -2; $user_cur->asta_pnt = -1; @@ -394,9 +394,9 @@ class Table_briskin5 extends Table { } - function exitlock_show(&$userarr, $table_pos) + function exitlock_show($userarr, $table_pos) { - $ct = $this->exitlock_calc(&$userarr, $table_pos); + $ct = $this->exitlock_calc($userarr, $table_pos); $ret = sprintf('exitlock_show(%d, %s);', $ct, ($userarr[$this->player[$table_pos]]->exitislock ? 'true' : 'false')); @@ -527,14 +527,14 @@ class Briskin5 { exit; } - $user =& $room->user; - $table =& $room->table[$table_idx]; + $user = $room->user; + $table = $room->table[$table_idx]; log_wr("Briskin5 constructor"); for ($i = 0 ; $i < $table->player_n ; $i++) { $user[$table->player[$i]]->table_token = $table_token; - $this->user[$i] =& User_briskin5::spawn(&$user[$table->player[$i]], $table_idx, $i); + $this->user[$i] =& User_briskin5::spawn($user[$table->player[$i]], $table_idx, $i); } $this->table[0] =& Table_briskin5::spawn(&$table); @@ -583,7 +583,7 @@ class Briskin5 { if ($force || $this->garbage_timeout < $curtime) { for ($i = 0 ; $i < BRISKIN5_MAX_PLAYERS ; $i++) { - $user_cur = &$this->user[$i]; + $user_cur = $this->user[$i]; if ($user_cur->sess == "" || ($user_cur->stat == 'table' && ($user_cur->subst == 'shutdowned' || $user_cur->subst == 'shutdowner'))) continue; @@ -613,7 +613,7 @@ class Briskin5 { } // $user->bantime = $user->laccwr + BAN_TIME; - $this->table_wakeup(&$user_cur); + $this->table_wakeup($user_cur); } } } @@ -791,7 +791,7 @@ class Briskin5 { } - function chatt_send(&$user, $mesg) + function chatt_send($user, $mesg) { GLOBAL $mlang_brisk, $G_lang; @@ -820,7 +820,7 @@ class Briskin5 { // update local graph // update remote graphs for ($i = 0 ; $i < BRISKIN5_MAX_PLAYERS ; $i++) { - $user_cur = &$this->user[$i]; + $user_cur = $this->user[$i]; // if ($user_cur->sess == '' || $user_cur->stat != 'room') if ($user_cur->sess == '') continue; @@ -908,7 +908,7 @@ class Briskin5 { } } - function table_wakeup(&$user) + function table_wakeup($user) { $table = &$this->table[0]; @@ -1085,7 +1085,7 @@ Examples of $is_transition, $is_again: function show_table(&$room, &$user, $sendstep, $is_transition, $is_again) { $table_idx = $user->table; - $table = &$room->table[$table_idx]; + $table = $room->table[$table_idx]; $table_pos = $user->table_pos; $ret = "table_init();"; @@ -1317,7 +1317,7 @@ function show_table_info(&$room, &$table, $table_pos) GLOBAL $G_lang, $mlang_bin5_bin5; $ret = ""; - $user = &$room->user[$table->player[$table_pos]]; + $user = $room->user[$table->player[$table_pos]]; $pnt_min = $table->points_n - MAX_POINTS < 0 ? 0 : $table->points_n - MAX_POINTS; $noty = sprintf(''); @@ -1497,7 +1497,7 @@ function game_result($asta_pnt, $pnt) } } -function log_points($curtime, &$user, $where, $mesg) +function log_points($curtime, $user, $where, $mesg) { GLOBAL $_SERVER;