X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fgame.php;h=99ff454fd9a84d6a539cb075915eddd8ff3cef2e;hp=d691c7f0b92147c0ddd7864103b4c38e3afcce35;hb=022246b947178ed5c7b1cd6a6dcc21414559b260;hpb=455372db985024563b26bfa5af9c91b2a8e53c06 diff --git a/include/game.php b/include/game.php index d691c7f..99ff454 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,11 +118,8 @@ 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') &&