summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-02-04 15:28:30 +0000
committerDarkvater <darkvater@openttd.org>2006-02-04 15:28:30 +0000
commit94dfa094246b5e9dfd5e86fcbce2a55fce8f7c00 (patch)
treea35370aca455ae3821df0969c45f4742f0cce2c3 /openttd.c
parentb36f89bc51cbd9feba3b73bd5f39af7286cc669a (diff)
downloadopenttd-94dfa094246b5e9dfd5e86fcbce2a55fce8f7c00.tar.xz
(svn r3534) - Codechange: remove unused savedump patch-settings.
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/openttd.c b/openttd.c
index 602e619cd..0649ab55a 100644
--- a/openttd.c
+++ b/openttd.c
@@ -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();