X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=c85147b1c8d8724292387fc79bd1ed8b2cfb4c2c;hb=8501bc2f9d74191d21b2ad072253c29eecb33ea0;hp=314dd216d2b4c1ea10f790d1bb009077a1e93b91;hpb=b8f1d8f36232177e0365be7cdf27398c8a6582df;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index 314dd21..c85147b 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -2,7 +2,10 @@ /* * brisk - index_wr.php * - * Copyright (C) 2006 matteo.nastasi@milug.org + * Copyright (C) 2006-2008 Matteo Nastasi + * mailto: nastasi@alternativeoutput.it + * matteo.nastasi@milug.org + * web: http://www.alternativeoutput.it * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -408,11 +411,10 @@ else if ($user->stat == 'table') { $turn_nex = ($table->gstart + $table->turn) % BRISKIN5_PLAYERS_N; log_wr(sprintf("The winner is: [%d] [%s]", $winner, $bri->user[$table->player[$winner]]->name)); - $card_take = sprintf("sleep(gst,2000);|cards_take(%d);", - $winner, $winner); - $player_cur = "remark_off();" . $card_take . "|"; + $card_take = sprintf("sleep(gst,2000);|cards_take(%d);|", $winner); + $player_cur = "remark_off();" . $card_take; if ($turn_cur != $turn_nex) - $player_nex = $card_play . $card_take . "|"; + $player_nex = $card_play . $card_take; else $player_nex = ""; if ($table->turn < (BRISKIN5_PLAYERS_N * 8)) /* game NOT finished */ @@ -440,9 +442,6 @@ else if ($user->stat == 'table') { $retar[$i] = $ret; } - - - if ($table->turn == (BRISKIN5_PLAYERS_N * 8)) { /* game finished */ log_wr(sprintf("GIOCO FINITO !!!"));