X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=2d93e2268a4f177f8ea58fc93ffbde0daac2033f;hb=3a38798bd66e565b82f3e53f7f12aef7e70e2c82;hp=54c0c3ce3aa497c8131717ba4fa5a51fcb319b14;hpb=a2924d2335ec5325dc322600fe373625575ac8e2;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 54c0c3c..2d93e22 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -151,6 +151,7 @@ else if ($user->stat == 'room') { // Create new spawned table $bri_sem = Briskin5::lock_data($table_idx); $table_token = uniqid(""); + $room->table[$table_idx]->table_token = $table_token; if (($bri =& new Briskin5(&$room, $table_idx, $table_token)) == FALSE) log_wr($sess, "bri create: FALSE"); else @@ -169,15 +170,15 @@ else if ($user->stat == 'room') { $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(); $bri_user_cur->comm[$bri_user_cur->step % COMM_N] = show_table(&$bri,&$bri_user_cur,$bri_user_cur->step+1,TRUE, FALSE); - $bri_user_cur->stat_set('table'); - $bri_user_cur->subst = 'asta'; - $bri_user_cur->laccwr = $curtime; - $bri_user_cur->step_inc(); log_wr($bri_user_cur->sess, "TRY PRESAVE: ".$bri_user_cur->step." TRANS STEP: ".$bri_user_cur->trans_step);