summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ttd.c b/ttd.c
index dfca2556a..99b9d3474 100644
--- a/ttd.c
+++ b/ttd.c
@@ -489,6 +489,7 @@ int ttd_main(int argc, char* argv[])
_game_mode = GM_MENU;
_switch_mode = SM_MENU;
+ _switch_mode_errorstr = INVALID_STRING_ID;
MyGetOptInit(&mgo, argc-1, argv+1, "m:s:v:hn::l:eit:d::r:g::G:cp:");
while ((i = MyGetOpt(&mgo)) != -1) {
@@ -860,6 +861,9 @@ normal_load:
MarkWholeScreenDirty();
break;
}
+
+ if (_switch_mode_errorstr!=INVALID_STRING_ID)
+ ShowErrorMessage(INVALID_STRING_ID,_switch_mode_errorstr,0,0);
_in_state_game_loop = false;
}