X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fgame.php;h=3bbfccd6d7096e5e2829859f65b019e362110ce3;hp=4dbf68f0a6e291dd194c485d8844a4c8aa49bc2b;hb=af2ee6fe421192cd2b42fcb4bbd09179bbce3943;hpb=c956a58882bbfef255af6817d8f21432968ac785
diff --git a/include/game.php b/include/game.php
index 4dbf68f..3bbfccd 100644
--- a/include/game.php
+++ b/include/game.php
@@ -142,7 +142,11 @@ display_table();
switch($mystatus)
{
case 'start':
- if( !myisset("in") )
+ /* don't ask if user has autosetup set to yest */
+ $skip = 0;
+ if($PREF['autosetup']=='yes') $skip = 1;
+
+ if( !myisset("in") && !$skip)
{
/* asks the player, if he wants to join the game */
output_check_want_to_play($me);
@@ -151,7 +155,7 @@ switch($mystatus)
else
{
/* check the result, if player wants to join, got next stage, else cancel game */
- if($_REQUEST["in"] == "no")
+ if($_REQUEST["in"] == "no" && !$skip)
{
/* cancel the game */
$message = "Hello, \n\n".
@@ -740,10 +744,10 @@ switch($mystatus)
foreach($cards as $card)
if($card<27) $nrtrump++;
echo "Player $name has $nrtrump trump. Do you want to take them?".
- "yes
\n";
+ "Yes
\n";
}
}
- echo "No,way I take those trump...
\n";
+ echo "No way
\n";
echo "