Made Call_Escape more accurate

The ASM indicates it's a `while (1)`, and there's no break.
This commit is contained in:
Clownacy 2019-02-06 12:16:50 +00:00
parent abf51970df
commit 76ac477108

View file

@ -10,7 +10,7 @@ int Call_Escape()
{
RECT rc = {0, 128, 208, 144};
while (Flip_SystemTask())
while (1)
{
//Get pressed keys
GetTrg();
@ -35,9 +35,14 @@ int Call_Escape()
CortBox(&grcFull, 0x000000);
PutBitmap3(&grcFull, (WINDOW_WIDTH - 208) / 2, (WINDOW_HEIGHT - 16) / 2, &rc, 26);
PutFramePerSecound();
if (!Flip_SystemTask())
{
//Quit if window is closed
gKeyTrg = 0;
return 0;
}
}
//Quit if window is closed
gKeyTrg = 0;
return 0;
}