win32: avoid game exit dialog lacking any explanation

This commit is contained in:
nhmall
2020-12-23 20:31:54 -05:00
parent f05e87831c
commit fe3eb92411

View File

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