projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
corretto bug sull'ultimo che vinceva l'asta
[brisk.git]
/
web
/
index_wr.php
diff --git
a/web/index_wr.php
b/web/index_wr.php
index
5f901f5
..
b3362fe
100644
(file)
--- a/
web/index_wr.php
+++ b/
web/index_wr.php
@@
-238,8
+238,9
@@
else if ($user->stat == 'table' && $user->subst == 'asta') {
$maxcard = $user_cur->asta_card;
}
$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)) {
!($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]) {
for ($i = 1 ; $i < PLAYERS_N ; $i++) {
$index_next = ($table->gstart + $i) % PLAYERS_N;
if ($table->asta_pla[$index_next]) {
@@
-285,7
+286,7
@@
else if ($user->stat == 'table' && $user->subst == 'asta') {
else {
log_wr($sess, "FINITA !");
// if a_pnt == 120 supergame ! else abbandono
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)
$chooser = $index_cur;
for ($i = 1 ; $i < PLAYERS_N ; $i++)
if ($i != $chooser)