Author: cazfi
Date: Thu Sep 10 06:20:07 2015
New Revision: 29844

URL: http://svn.gna.org/viewcvs/freeciv?rev=29844&view=rev
Log:
Show first history report at turn 20, not 21.

See patch #6332

Modified:
    trunk/common/game.c
    trunk/common/game.h

Modified: trunk/common/game.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/game.c?rev=29844&r1=29843&r2=29844&view=diff
==============================================================================
--- trunk/common/game.c (original)
+++ trunk/common/game.c Thu Sep 10 06:20:07 2015
@@ -415,7 +415,7 @@
     game.server.savepalace        = GAME_DEFAULT_SAVEPALACE;
     game.server.scorelog          = GAME_DEFAULT_SCORELOG;
     game.server.scoreloglevel     = GAME_DEFAULT_SCORELOGLEVEL;
-    game.server.scoreturn         = GAME_DEFAULT_SCORETURN;
+    game.server.scoreturn         = GAME_DEFAULT_SCORETURN - 1;
     game.server.seed              = GAME_DEFAULT_SEED;
     sz_strlcpy(game.server.start_units, GAME_DEFAULT_START_UNITS);
     game.server.start_year        = GAME_START_YEAR;

Modified: trunk/common/game.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/game.h?rev=29844&r1=29843&r2=29844&view=diff
==============================================================================
--- trunk/common/game.h (original)
+++ trunk/common/game.h Thu Sep 10 06:20:07 2015
@@ -479,6 +479,10 @@
 #define GAME_DEFAULT_SCORELOG        FALSE
 #define GAME_DEFAULT_SCORELOGLEVEL   SL_ALL
 #define GAME_DEFAULT_SCOREFILE       "freeciv-score.log"
+
+/* Turns between reports is random between SCORETURN and (2 x SCORETURN).
+ * First report is shown at SCORETURN. As report is generated in the end of 
the turn,
+ * first report is already generated at (SCORETURN - 1) */
 #define GAME_DEFAULT_SCORETURN       20
 
 #define GAME_DEFAULT_VICTORY_CONDITIONS (1 << VC_SPACERACE | 1 << VC_ALLIED)


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to