X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fgame.php;h=cef2c6537c2a11141a38ac387f546943f8624b1b;hp=8ab6f312d3d1e4bc283c0e0a705493737e6db110;hb=e9a0778e2270c200bdb77034a56c7c613606d737;hpb=3f60adfc28f87886827084ebce58f041c1967722 diff --git a/include/game.php b/include/game.php index 8ab6f31..cef2c65 100644 --- a/include/game.php +++ b/include/game.php @@ -43,11 +43,12 @@ if(!$myid) global $GAME,$RULES,$CARDS; -/* get some information from the DB */ +/************************************** + * get some information from the DB + **************************************/ $gameid = DB_get_gameid_by_hash($me); $myname = DB_get_name('hash',$me); $mystatus = DB_get_status_by_hash($me); -$origmystatus = DB_get_status_by_hash($me); /* to show "it's your turn" menu when game has just finished */ $mypos = DB_get_pos_by_hash($me); $myhand = DB_get_handid('hash',$me); $myparty = DB_get_party_by_hash($me); @@ -117,9 +118,6 @@ if($ok) */ set_gametype('normal'); -/* put everyting in a form */ -echo "
\n"; +/********************************* + * suggest next game + *********************************/ + $gamestatus = DB_get_game_status_by_gameid($gameid); if($mystatus=='gameover' && ($gamestatus =='gameover' || $gamestatus =='cancel-nines' || $gamestatus =='cancel-trump') &&