(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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user