(from Yitzhak)
Addresses <Someone>'s point that ALT-F4 in game-over, still brings up the save/quit/cancel dialog box. This makes ALT-F4 equivalent to quitting without any further disclosure/windows, but makes sure the game exits properly so it will save the bones and the record file. I also cleaned up the mhrip.c to use macros for all magic numbers.
This commit is contained in:
@@ -262,6 +262,15 @@ BOOL CALLBACK MenuWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
LayoutMenu(hWnd);
|
||||
return FALSE;
|
||||
|
||||
case WM_CLOSE:
|
||||
if (program_state.gameover) {
|
||||
data->result = -1;
|
||||
data->done = 1;
|
||||
program_state.stopprint++;
|
||||
return TRUE;
|
||||
} else
|
||||
return FALSE;
|
||||
|
||||
case WM_COMMAND:
|
||||
{
|
||||
switch (LOWORD(wParam))
|
||||
|
||||
Reference in New Issue
Block a user