Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7086) server does an end-of-turn when client quit
Home

[Freeciv-Dev] Re: (PR#7086) server does an end-of-turn when client quit

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bh@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7086) server does an end-of-turn when client quits
From: "Arnstein Lindgard" <a-l@xxxxxxx>
Date: Fri, 16 Jan 2004 07:49:51 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7086 >

Patch: default turnblock ON.

Pubserver restarts after 60 sec when all players disconnect, even
when this is on.

If one player disconnects you may have to use timeout to advance one
turn, since AI'ing the player does not advance turn immediately.


Arnstein


diff -ruN -Xdiff_ignore freeciv/common/game.c turnblock/common/game.c
--- freeciv/common/game.c       Fri Nov 28 21:37:22 2003
+++ turnblock/common/game.c     Fri Jan 16 16:37:13 2004
@@ -241,6 +241,7 @@
   game.civstyle    = GAME_DEFAULT_CIVSTYLE;
   game.razechance  = GAME_DEFAULT_RAZECHANCE;
   game.spacerace   = GAME_DEFAULT_SPACERACE;
+  game.turnblock   = GAME_DEFAULT_TURNBLOCK;
   game.fogofwar    = GAME_DEFAULT_FOGOFWAR;
   game.fogofwar_old= game.fogofwar;
   game.borders     = GAME_DEFAULT_BORDERS;
diff -ruN -Xdiff_ignore freeciv/common/game.h turnblock/common/game.h
--- freeciv/common/game.h       Sun Jan 11 18:56:49 2004
+++ turnblock/common/game.h     Fri Jan 16 16:37:49 2004
@@ -394,6 +394,8 @@
 
 #define GAME_DEFAULT_SPACERACE       TRUE
 
+#define GAME_DEFAULT_TURNBLOCK       TRUE
+
 #define GAME_DEFAULT_AUTO_AI_TOGGLE  FALSE
 
 #define GAME_DEFAULT_TIMEOUT         0
diff -ruN -Xdiff_ignore freeciv/server/stdinhand.c turnblock/server/stdinhand.c
--- freeciv/server/stdinhand.c  Fri Jan  9 09:16:03 2004
+++ turnblock/server/stdinhand.c        Fri Jan 16 16:39:17 2004
@@ -792,7 +792,7 @@
           N_("If this is set to 1 the game turn is not advanced "
              "until all players have finished their turn, including "
              "disconnected players."), NULL, 
-          FALSE)
+          GAME_DEFAULT_TURNBLOCK)
 
   GEN_BOOL("fixedlength", game.fixedlength, SSET_META, SSET_TO_CLIENT,
           N_("Fixed-length turns play mode"),

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#7086) server does an end-of-turn when client quits, Arnstein Lindgard <=