LAB: Check for engine quit events
This commit is contained in:
parent
4cf271054a
commit
cc0baf48ed
2 changed files with 8 additions and 2 deletions
|
@ -741,7 +741,7 @@ static void mainGameLoop() {
|
|||
WSDL_ProcessInput(1);
|
||||
|
||||
if (GotMessage) {
|
||||
if (QuitLab) {
|
||||
if (QuitLab || g_engine->shouldQuit()) {
|
||||
stopDiff();
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -69,11 +69,17 @@ void introEatMessages() {
|
|||
while (1) {
|
||||
Msg = getMsg();
|
||||
|
||||
if (g_engine->shouldQuit()) {
|
||||
QuitIntro = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (Msg == NULL)
|
||||
return;
|
||||
else {
|
||||
if (((Msg->Class == MOUSEBUTTONS) && (IEQUALIFIER_RBUTTON & Msg->Qualifier)) ||
|
||||
((Msg->Class == RAWKEY) && (Msg->Code == 27)))
|
||||
((Msg->Class == RAWKEY) && (Msg->Code == 27))
|
||||
)
|
||||
QuitIntro = true;
|
||||
|
||||
replyMsg(Msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue