summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 464330581..a902d197d 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -71,9 +71,6 @@
#include "table/strings.h"
-/** Error message to show when switching modes. */
-StringID _switch_mode_errorstr;
-
void CallLandscapeTick();
void IncreaseDate();
void DoPaletteAnimations();
@@ -524,7 +521,6 @@ int ttd_main(int argc, char *argv[])
_game_mode = GM_MENU;
_switch_mode = SM_MENU;
- _switch_mode_errorstr = INVALID_STRING_ID;
_config_file = NULL;
GetOptData mgo(argc - 1, argv + 1, _options);
@@ -1103,11 +1099,6 @@ void SwitchToMode(SwitchMode new_mode)
default: NOT_REACHED();
}
-
- if (_switch_mode_errorstr != INVALID_STRING_ID) {
- ShowErrorMessage(_switch_mode_errorstr, INVALID_STRING_ID, WL_CRITICAL);
- _switch_mode_errorstr = INVALID_STRING_ID;
- }
}