From 933c84955d9b255c83aa33ad0a6f6656042e9244 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 31 Oct 2013 18:09:02 +0100 Subject: [PATCH] update 'stat' and 'subst' in more proper functions --- web/briskin5/Obj/briskin5.phh | 3 ++- web/briskin5/index_wr.php | 2 -- web/index_wr.php | 3 --- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index df851cc..9eadb62 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -407,6 +407,7 @@ class Bin5_table extends Table { for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) { $this->total[$i] = 0; $user_cur = $userarr[$this->player[$i]]; + $user_cur->stat_set('table'); $user_cur->exitislock = TRUE; } @@ -497,7 +498,7 @@ class Bin5_table extends Table { return ($ct); } - function rules_engine($bri, $curtime, $action, $user) + function rules_engine(&$bri, $curtime, $action, $user) { GLOBAL $G_all_points, $G_dbasetype; diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index c44834c..3ededa9 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -257,8 +257,6 @@ function bin5_index_wr_main(&$bri, $remote_addr_full, $get, $post, $cookie) } } - - if ($again) { // Qualcosa non andato bene, rifare $ret = sprintf('gst.st = %d; asta_pnt_set(%d);', $user->step+1, ($table->asta_pnt > 60 ? $table->asta_pnt + 1 : 61) ); diff --git a/web/index_wr.php b/web/index_wr.php index 91eb8f3..61d6b82 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -667,10 +667,7 @@ function index_wr_main(&$room, $remote_addr_full, $get, $post, $cookie) $bri_user_cur = $bri->user[$i]; $user_cur = $room->user[$table->player[$i]]; - $bri_user_cur->stat_set('table'); - $bri_user_cur->subst = 'asta'; $bri_user_cur->laccwr = $curtime; - $bri_user_cur->trans_step = $user_cur->step + 1; $bri_user_cur->comm[$bri_user_cur->step % COMM_N] = ""; $bri_user_cur->step_inc(); -- 2.17.1