projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixe placement of comment box in pre-game phase
[e-DoKo.git]
/
include
/
game.php
diff --git
a/include/game.php
b/include/game.php
index 04df1620816beba6d79798ed379e601065555753..03dd259430f448812017daf2f539b8898c5de414 100644
(file)
--- a/
include/game.php
+++ b/
include/game.php
@@
-326,6
+326,7
@@
switch($mystatus)
{
/* asks the player, if he wants to join the game */
output_check_want_to_play($me);
{
/* asks the player, if he wants to join the game */
output_check_want_to_play($me);
+ echo '<div class="mycards"></div>';
break;
}
else
break;
}
else
@@
-520,6
+521,7
@@
switch($mystatus)
/* move on to the next stage*/
DB_set_hand_status_by_hash($me,'check');
/* move on to the next stage*/
DB_set_hand_status_by_hash($me,'check');
+ $mystatus='check';
};
};
};
};
@@
-834,6
+836,12
@@
switch($mystatus)
}
}
echo "</div>\n";
}
}
echo "</div>\n";
+ /* show cards */
+ echo '<div class="mycards">'._('Your cards are').": <br />\n";
+ foreach($mycards as $card)
+ display_card($card,$PREF['cardset']);
+ echo "</div>\n";
+
break;
}
break;
}
@@
-1994,7
+2002,7
@@
switch($mystatus)
$howmanycards = 0;
foreach($mycards as $card)
{
$howmanycards = 0;
foreach($mycards as $card)
{
- if($howmanycard>1)
+ if($howmanycard
s
>1)
break;
/* display only cards that the player is allowed to play as links, the rest just display normal
break;
/* display only cards that the player is allowed to play as links, the rest just display normal
@@
-2013,10
+2021,11
@@
switch($mystatus)
in_array($gametype,array('normal','wedding','trump','silent'))
)
)
in_array($gametype,array('normal','wedding','trump','silent'))
)
)
- continue
;
+ continue;
else
$howmanycards++;
}
else
$howmanycards++;
}
+
if($howmanycards==1)
$howmanycards=1;
else
if($howmanycards==1)
$howmanycards=1;
else
@@
-2042,7
+2051,7
@@
switch($mystatus)
)
display_card($card,$PREF['cardset']);
else
)
display_card($card,$PREF['cardset']);
else
- display_link_card($card,$PREF['cardset'],$selected=$howmanycards);
+ display_link_card($card,$PREF['cardset'],$
type='card',$
selected=$howmanycards);
}
}
else if($mystatus=='play' )
}
}
else if($mystatus=='play' )