X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=3133fe74ffc1b1bdc02c77f5c8a7f4049af4a953;hb=9fe01afc16fc77e8df25c556dae021052eddce42;hp=5f901f51a8f12e485b24c7406949a22938fc6f48;hpb=6fb4f4de68dd526e7db17fccec3984c1dccb6b5f;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 5f901f5..3133fe7 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -60,6 +60,8 @@ if ($argz[0] == 'shutdown') { log_rd2($sess, "SHUTDOWN FROM WHAT ???"); } else if ($user->stat == 'room') { + $user->laccwr = time(); + if ($argz[0] == 'help') { $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; $user->comm[$user->step % COMM_N] .= show_notify(str_replace("\n", " ", $G_room_help), 0, "torna ai tavoli", 600, 500); @@ -156,6 +158,7 @@ else if ($user->stat == 'room') { * * ***************/ else if ($user->stat == 'table' && $user->subst == 'asta') { + $user->laccwr = time(); $table = &$bri->table[$user->table]; if ($argz[0] == 'logout') { @@ -238,8 +241,9 @@ else if ($user->stat == 'table' && $user->subst == 'asta') { $maxcard = $user_cur->asta_card; } - if ($table->asta_pla_n > ($maxcard > -1 ? 1 : 0) && + if (($table->asta_pla_n > ($maxcard > -1 ? 1 : 0)) && !($table->asta_card == 9 && $table->asta_pnt == 120)) { + log_wr($sess,"ALLOPPA QUI"); for ($i = 1 ; $i < PLAYERS_N ; $i++) { $index_next = ($table->gstart + $i) % PLAYERS_N; if ($table->asta_pla[$index_next]) { @@ -285,7 +289,7 @@ else if ($user->stat == 'table' && $user->subst == 'asta') { else { log_wr($sess, "FINITA !"); // if a_pnt == 120 supergame ! else abbandono - if ($a_pnt == 120) { + if ($a_pnt == 120 || $user->asta_card != -1) { $chooser = $index_cur; for ($i = 1 ; $i < PLAYERS_N ; $i++) if ($i != $chooser)