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=18d58193a697f838ae1d1669aacd15c8dd816d7e;hb=1829c4b57884b84b5ef6cb54a031a62ce53005fa;hpb=e2ced42562672ea0816aca6b139242bdc828b431 diff --git a/include/game.php b/include/game.php index 18d5819..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') &&