win32: avoid game exit dialog lacking any explanation
This commit is contained in:
@@ -2796,6 +2796,8 @@ int
|
||||
NHMessageBox(HWND hWnd, LPCTSTR text, UINT type)
|
||||
{
|
||||
TCHAR title[MAX_LOADSTRING];
|
||||
if (g.program_state.exiting && !strcmp(text, "\n"))
|
||||
text = "Press Enter to exit";
|
||||
|
||||
LoadString(GetNHApp()->hApp, IDS_APP_TITLE_SHORT, title, MAX_LOADSTRING);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user