SACT/NIGHTDLL: Check nact->is_quit flag in wait loops

This commit is contained in:
kichikuou
2021-01-24 11:43:23 +09:00
parent 04c3e22339
commit d61ce9a18e
6 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -1012,7 +1012,7 @@ static void WaitKeySimple() {
sact.waittype = KEYWAIT_SIMPLE;
sact.waitkey = -1;
while(sact.waitkey == -1) {
while (sact.waitkey == -1 && !nact->is_quit) {
sys_keywait(25, KEYWAIT_CANCELABLE);
}
@@ -1587,7 +1587,7 @@ static void TimerWait() {
int wTimerID = getCaliValue();
int wCount = getCaliValue();
while(wCount > stimer_get(wTimerID)) {
while (wCount > stimer_get(wTimerID) && !nact->is_quit) {
sys_keywait(10, KEYWAIT_NONCANCELABLE);
}