From: Arun Persaud Date: Fri, 16 Jan 2009 02:50:56 +0000 (-0800) Subject: NEW FEATURE: only show re or contra for calls X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=9ea0c1fc3eb689bc8e0223595d42d2e3ecae4192;hp=d39212226664baf71e5af60da3d9cbb0c2990356;ds=sidebyside NEW FEATURE: only show re or contra for calls makes it clear what you can call in a silent solo. Fixes issue #41. --- diff --git a/include/game.php b/include/game.php index fb807c7..8d07b83 100644 --- a/include/game.php +++ b/include/game.php @@ -1968,8 +1968,10 @@ else echo "
\n"; if($gamestatus == 'play' ) - output_form_calls($me); - + { + $myparty = DB_get_party_by_hash($me); + output_form_calls($me,$myparty); + } /* get time from the last action of the game */ $r = DB_query_array("SELECT mod_date from Game WHERE id='$gameid' " ); $gameend = time() - strtotime($r[0]); diff --git a/include/output.php b/include/output.php index dc6f793..f694c5b 100644 --- a/include/output.php +++ b/include/output.php @@ -221,11 +221,18 @@ function output_check_for_sickness($me,$mycards) return; } -function output_form_calls($me) +function output_form_calls($me,$myparty) { if( can_call(120,$me) ) - echo " re/contra (120):". - "
"; + { + if($myparty=='re') + echo "re (120):"; + else if ($myparty=='contra') + echo "contra (120):"; + else + echo " re/contra (120):"; + echo "
"; + } if( can_call(90,$me) ) echo " 90:". "
";