summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-06-25 19:18:51 -0700
committerArun Persaud <arun@nubati.net>2010-06-25 19:18:51 -0700
commit8550cac6f9bedbd9219d898f7b3de731bf1cb2b2 (patch)
tree77eaafea9a198be4ac305e627c737a597e14f54d
parent0dd3b61e693aaf436af4315a354b8c2409b0f64a (diff)
downloade-DoKo-8550cac6f9bedbd9219d898f7b3de731bf1cb2b2.tar.gz
e-DoKo-8550cac6f9bedbd9219d898f7b3de731bf1cb2b2.tar.bz2
e-DoKo-8550cac6f9bedbd9219d898f7b3de731bf1cb2b2.zip
BUGIFX: when playing a silent solo the "pre" trick showed up in the list of tricks
since now sickness was shown in the pre trick this gave away silent solo, although I think nobody noticed up to now ;) Should be fixed now by checking for silent solo correctly (a non-function if-statement was already in the code)
-rw-r--r--include/game.php22
1 files changed, 12 insertions, 10 deletions
diff --git a/include/game.php b/include/game.php
index bd25e78..eb66a98 100644
--- a/include/game.php
+++ b/include/game.php
@@ -531,7 +531,7 @@ switch($mystatus)
$mycards = DB_get_hand($me);
$mycards = mysort($mycards,$gametype);
- /* output sickness of other playes, in case the already selected and are sitting in front of the current player */
+ /* output sickness of other playes, in case they already selected and are sitting in front of the current player */
echo "\n<ul class=\"tricks\">\n";
echo " <li class=\"nohighlight\"> Game ".DB_format_gameid($gameid).": </li>\n";
echo " <li onclick=\"hl('0');\" class=\"current\"><a href=\"#\">Pre</a>\n".
@@ -1291,17 +1291,19 @@ switch($mystatus)
echo ' <li class="nohighlight"> '._('Game').' '.DB_format_gameid($gameid).": </li>\n";
/* output vorbehalte */
- $mygametype = DB_get_gametype_by_gameid($gameid);
- if($mygametype != 'normal' && $mygametype != 'silent') /* only show when needed */
- {
- echo " <li onclick=\"hl('0');\" class=\"current\"><a href=\"#\">Pre</a>\n".
- " <div class=\"trick\" id=\"trick0\">\n";
+ $mygametype = DB_get_gametype_by_gameid($gameid);
+ $mygamesolo = DB_get_solo_by_gameid($gameid);
+ if($mygametype != 'normal') /* only show when needed */
+ if(!( $mygametype == 'solo' && $mygamesolo == 'silent') )
+ {
+ echo " <li onclick=\"hl('0');\" class=\"current\"><a href=\"#\">Pre</a>\n".
+ " <div class=\"trick\" id=\"trick0\">\n";
- /* get information so show the cards that have been handed over in a poverty game */
- output_exchanged_cards();
+ /* get information so show the cards that have been handed over in a poverty game */
+ output_exchanged_cards();
- echo " </div>\n </li>\n"; /* end div trick, end li trick */
- }
+ echo " </div>\n </li>\n"; /* end div trick, end li trick */
+ }
/* output tricks */
while($r = DB_fetch_array($result))