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 | |
parent | b36f89bc51cbd9feba3b73bd5f39af7286cc669a (diff) | |
download | openttd-94dfa094246b5e9dfd5e86fcbce2a55fce8f7c00.tar.xz |
(svn r3534) - Codechange: remove unused savedump patch-settings.
-rw-r--r-- | openttd.c | 12 | ||||
-rw-r--r-- | settings.c | 10 | ||||
-rw-r--r-- | variables.h | 5 |
3 files changed, 0 insertions, 27 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(); diff --git a/settings.c b/settings.c index 14026c8e2..b0e16b977 100644 --- a/settings.c +++ b/settings.c @@ -798,14 +798,6 @@ static const SettingDesc network_settings[] = { }; #endif /* ENABLE_NETWORK */ -static const SettingDesc debug_settings[] = { - {"savedump_path", SDT_STRINGBUF | (lengthof(_savedump_path)<<16) | SDT_NOSAVE, NULL, _savedump_path, NULL}, - {"savedump_first", SDT_UINT | SDT_NOSAVE, 0, &_savedump_first, NULL}, - {"savedump_freq", SDT_UINT | SDT_NOSAVE, (void*)1, &_savedump_freq, NULL}, - {"savedump_last", SDT_UINT | SDT_NOSAVE, 0, &_savedump_last, NULL}, - {NULL, 0, NULL, NULL, NULL} -}; - /* The settings showed when opened in the intro-menu. These values also are saved to * openttd.cfg, thus _opt_newgame is used here (not _opt which is used ingame with loaded games!) */ static const SettingDesc gameopt_settings[] = { @@ -1031,8 +1023,6 @@ static void HandleSettingDescs(IniFile *ini, SettingDescProc *proc) proc(ini, patch_settings, "patches"); proc(ini, patch_player_settings, "patches"); proc(ini, currency_settings,"currency"); - - proc(ini, debug_settings, "debug"); } // loads all items from a *grpname section into the **list diff --git a/variables.h b/variables.h index 7bf4a30bc..2ad7c0b47 100644 --- a/variables.h +++ b/variables.h @@ -318,11 +318,6 @@ VARDEF Vehicle *_place_clicked_vehicle; VARDEF char _ini_videodriver[16], _ini_musicdriver[16], _ini_sounddriver[16]; -// debug features -VARDEF char _savedump_path[64]; -VARDEF uint _savedump_first, _savedump_freq, _savedump_last; -// end of debug features - // Used for dynamic language support typedef struct { int num; // number of languages |