summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-10 15:16:58 +0000
committerrubidium <rubidium@openttd.org>2011-12-10 15:16:58 +0000
commit2bf0fc3c5c4be7fa497db0924296ef43d2f3b95e (patch)
tree693ef021b01bb1997dedae1760426f25d21dadc6 /src/openttd.cpp
parent420d358fef4d88942a5df168ab5c78d68060fe35 (diff)
downloadopenttd-2bf0fc3c5c4be7fa497db0924296ef43d2f3b95e.tar.xz
(svn r23476) -Codechange: use the error queue to replace switch mode error strings, again making it possible to return multiple errors
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;
- }
}