Changeset - r16519:2c5b8266a6f7
[Not reviewed]
master
0 2 0
rubidium - 14 years ago 2010-11-19 13:24:32
rubidium@openttd.org
(svn r21255) -Fix (r179): main menu error messages wouldn't show when you had an error message open in the game while whatever triggered you to go back to the main menu
2 files changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/misc_gui.cpp
Show inline comments
 
@@ -713,8 +713,6 @@ public:
 
	~ErrmsgWindow()
 
	{
 
		SetRedErrorSquare(INVALID_TILE);
 
		extern StringID _switch_mode_errorstr;
 
		_switch_mode_errorstr = INVALID_STRING_ID;
 
	}
 

	
 
	virtual EventState OnKeyPress(uint16 key, uint16 keycode)
src/openttd.cpp
Show inline comments
 
@@ -1103,6 +1103,7 @@ void SwitchToMode(SwitchMode new_mode)
 

	
 
	if (_switch_mode_errorstr != INVALID_STRING_ID) {
 
		ShowErrorMessage(_switch_mode_errorstr, INVALID_STRING_ID, WL_CRITICAL);
 
		_switch_mode_errorstr = INVALID_STRING_ID;
 
	}
 
}
 

	
0 comments (0 inline, 0 general)