From fe3eb9241103ff3cce0767eec9a5be06a7180948 Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 23 Dec 2020 20:31:54 -0500 Subject: [PATCH] win32: avoid game exit dialog lacking any explanation --- win/win32/mswproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/win/win32/mswproc.c b/win/win32/mswproc.c index 754071f52..a439deca5 100644 --- a/win/win32/mswproc.c +++ b/win/win32/mswproc.c @@ -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);