diff options
author | Darkvater <darkvater@openttd.org> | 2006-02-04 15:28:30 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-02-04 15:28:30 +0000 |
commit | 94dfa094246b5e9dfd5e86fcbce2a55fce8f7c00 (patch) | |
tree | a35370aca455ae3821df0969c45f4742f0cce2c3 /openttd.c | |
parent | b36f89bc51cbd9feba3b73bd5f39af7286cc669a (diff) | |
download | openttd-94dfa094246b5e9dfd5e86fcbce2a55fce8f7c00.tar.xz |
(svn r3534) - Codechange: remove unused savedump patch-settings.
Diffstat (limited to 'openttd.c')
-rw-r--r-- | openttd.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -821,18 +821,6 @@ void StateGameLoop(void) // dont execute the state loop during pause if (_pause) return; - // _frame_counter is increased somewhere else when in network-mode - // Sidenote: _frame_counter is ONLY used for _savedump in non-MP-games - // Should that not be deleted? If so, the next 2 lines can also be deleted - if (!_networking) _frame_counter++; - - if (_savedump_path[0] && (uint)_frame_counter >= _savedump_first && (uint)(_frame_counter -_savedump_first) % _savedump_freq == 0 ) { - char buf[100]; - sprintf(buf, "%s%.5d.sav", _savedump_path, _frame_counter); - SaveOrLoad(buf, SL_SAVE); - if ((uint)_frame_counter >= _savedump_last) exit(1); - } - if (_game_mode == GM_EDITOR) { RunTileLoop(); CallVehicleTicks(); |