(svn r23476) -Codechange: use the error queue to replace switch mode error strings, again making it possible to return multiple errors

This commit is contained in:
rubidium
2011-12-10 15:16:58 +00:00
parent 420d358fef
commit 2bf0fc3c5c
9 changed files with 58 additions and 42 deletions

View File

@@ -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;
}
}