Author: cazfi Date: Sun Apr 10 10:04:16 2016 New Revision: 32327 URL: http://svn.gna.org/viewcvs/freeciv?rev=32327&view=rev Log: Save reproducible dummy turn change time value instead of real one when testmatic enabled.
See bug #23836 Modified: trunk/server/savegame3.c Modified: trunk/server/savegame3.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/savegame3.c?rev=32327&r1=32326&r2=32327&view=diff ============================================================================== --- trunk/server/savegame3.c (original) +++ trunk/server/savegame3.c Sun Apr 10 10:04:16 2016 @@ -145,6 +145,10 @@ #include "savegame3.h" extern bool sg_success; + +#ifdef FREECIV_TESTMATIC +#define SAVE_DUMMY_TURN_CHANGE_TIME 1 +#endif /* * This loops over the entire map to save data. It collects all the data of @@ -2076,8 +2080,13 @@ } else { saving->save_players = TRUE; } +#ifndef SAVE_DUMMY_TURN_CHANGE_TIME secfile_insert_int(saving->file, game.server.turn_change_time * 100, "game.last_turn_change_time"); +#else /* SAVE_DUMMY_TURN_CHANGE_TIME */ + secfile_insert_int(saving->file, game.info.turn * 10, + "game.last_turn_change_time"); +#endif /* SAVE_DUMMY_TURN_CHANGE_TIME */ } secfile_insert_bool(saving->file, saving->save_players, "game.save_players"); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits