Commit 3d67fd7 1 parent 8751f63 commit 3d67fd7 Copy full SHA for 3d67fd7
File tree 1 file changed +15
-10
lines changed
1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change 12
12
#include "input.h"
13
13
#include "loading.h"
14
14
#include "loadsave.h"
15
+ #include "main.h"
15
16
#include "mainmenu.h"
16
17
#include "network.h"
17
18
#include "pd/sys.h"
@@ -44,18 +45,22 @@ br_pixelmap* gSource_for_16bit_palette;
44
45
int CheckQuit (void ) {
45
46
LOG_TRACE8 ("()" );
46
47
47
- if (!gIn_check_quit && KeyIsDown (KEYMAP_CTRL_QUIT ) && KeyIsDown (KEYMAP_CONTROL_ANY )) {
48
- gIn_check_quit = 1 ;
49
- while (AnyKeyDown ()) {
50
- ;
51
- }
48
+ if (gIn_check_quit ) {
49
+ return 0 ;
50
+ }
51
+ if (!KeyIsDown (KEYMAP_CTRL_QUIT ) || !KeyIsDown (KEYMAP_CONTROL_ANY )) {
52
+ return 0 ;
53
+ }
54
+ gIn_check_quit = 1 ;
55
+ while (AnyKeyDown ()) {
56
+ ;
57
+ }
52
58
53
- if (DoVerifyQuit (1 )) {
54
- DoSaveGame (1 );
55
- }
56
- gIn_check_quit = 0 ;
59
+ if (DoVerifyQuit (1 )) {
60
+ QuitGame ();
57
61
}
58
- return 0 ;
62
+ gIn_check_quit = 0 ;
63
+ return 1 ;
59
64
}
60
65
61
66
// IDA: double __cdecl sqr(double pN)
You can’t perform that action at this time.
0 commit comments