Changeset - r28608:4376eeaa3a81
[Not reviewed]
master
0 2 0
Patric Stout - 10 months ago 2024-01-29 21:58:22
truebrain@openttd.org
Fix #11910: use economy timer for dmp_cmds files (#11925)
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/genworld.cpp
Show inline comments
 
@@ -198,7 +198,7 @@ static void _GenerateWorld()
 
		Debug(desync, 1, "new_map: {:08x}", _settings_game.game_creation.generation_seed);
 

	
 
		if (_debug_desync_level > 0) {
 
			std::string name = fmt::format("dmp_cmds_{:08x}_{:08x}.sav", _settings_game.game_creation.generation_seed, TimerGameCalendar::date);
 
			std::string name = fmt::format("dmp_cmds_{:08x}_{:08x}.sav", _settings_game.game_creation.generation_seed, TimerGameEconomy::date);
 
			SaveOrLoad(name, SLO_SAVE, DFT_GAME_FILE, AUTOSAVE_DIR, false);
 
		}
 
	} catch (AbortGenerateWorldSignal&) {
src/openttd.cpp
Show inline comments
 
@@ -1465,7 +1465,7 @@ void StateGameLoop()
 
	} else {
 
		if (_debug_desync_level > 2 && TimerGameEconomy::date_fract == 0 && (TimerGameEconomy::date.base() & 0x1F) == 0) {
 
			/* Save the desync savegame if needed. */
 
			std::string name = fmt::format("dmp_cmds_{:08x}_{:08x}.sav", _settings_game.game_creation.generation_seed, TimerGameCalendar::date);
 
			std::string name = fmt::format("dmp_cmds_{:08x}_{:08x}.sav", _settings_game.game_creation.generation_seed, TimerGameEconomy::date);
 
			SaveOrLoad(name, SLO_SAVE, DFT_GAME_FILE, AUTOSAVE_DIR, false);
 
		}
 

	
0 comments (0 inline, 0 general)