From 46319a55bbfaddcf07fed1c19120563807d9670d Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 10 May 2008 22:30:52 -0700 Subject: NEW FEATURE: display if someone is sick during the init phase Now players can see if someone in front of them said they were sick or not. This way people can decide to wait until people in front of them finished the init phase to see what the other playes said... it's made so that you can also see if people behind you already have decided or not, but the player won't see the result in that case... Signed-off-by: Arun Persaud --- include/game.php | 25 ++++++++++++++++++++++++- include/output.php | 2 +- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/include/game.php b/include/game.php index 35b94cd..d7e7b95 100644 --- a/include/game.php +++ b/include/game.php @@ -186,7 +186,30 @@ switch($mystatus) /* here we ask the player if he is sick */ $mycards = DB_get_hand($me); sort($mycards); + + /* output sickness of other playes, in case the already selected and are sitting in front of the current player */ + echo "\n\n"; /* end div trick, end li trick , end tricks*/ + /* end displaying sickness */ + if(!myisset("solo","wedding","poverty","nines") ) { output_check_for_sickness($me,$mycards); @@ -271,7 +294,7 @@ switch($mystatus) echo "

\n"; /* move on to the next stage*/ - DB_set_hand_status_by_hash($me,'poverty'); + DB_set_hand_status_by_hash($me,'check'); }; }; diff --git a/include/output.php b/include/output.php index 5f46470..dc10fa3 100644 --- a/include/output.php +++ b/include/output.php @@ -243,7 +243,7 @@ function output_header() function high_last(){ if(document.getElementById){ var i; - for(i=13;i>0;i--) { + for(i=13;i>=0;i--) { if(document.getElementById("trick"+i)) { hl(i); -- cgit v1.2.3-18-g5258