Commit f2a28c9c authored by NY00123's avatar NY00123
Browse files

SW: Add a few calls to handleevents around key press loops. Also check

quitevent in the game, and further call getpackets within StatScreen.

From-SVN: r8748
parent 6c97deff
......@@ -2008,7 +2008,7 @@ TenScreen(void)
//FadeIn(0, 3);
ResetKeys();
while (!KeyPressed());
while (!KeyPressed() && !quitevent) handleevents();
palookup[0] = palook_bak;
......@@ -2865,7 +2865,7 @@ StatScreen(PLAYERp mpp)
if (KeyPressed())
{
while (KeyPressed()) ;
while (KeyPressed() && !quitevent) { handleevents(); getpackets(); }
}
KEY_PRESSED(KEYSC_SPACE) = 0;
......
......@@ -3650,7 +3650,7 @@ ShadeMenu(void) // F8
ResetKeys();
while ((key = BKeyPressed()) == NULL) ;
while ((key = BKeyPressed()) == NULL) handleevents();
if (key == (uint8_t*)&KEY_PRESSED(KEYSC_1))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment