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);
|
WSDL_ProcessInput(1);
|
||||||
|
|
||||||
if (GotMessage) {
|
if (GotMessage) {
|
||||||
if (QuitLab) {
|
if (QuitLab || g_engine->shouldQuit()) {
|
||||||
stopDiff();
|
stopDiff();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,11 +69,17 @@ void introEatMessages() {
|
||||||
while (1) {
|
while (1) {
|
||||||
Msg = getMsg();
|
Msg = getMsg();
|
||||||
|
|
||||||
|
if (g_engine->shouldQuit()) {
|
||||||
|
QuitIntro = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (Msg == NULL)
|
if (Msg == NULL)
|
||||||
return;
|
return;
|
||||||
else {
|
else {
|
||||||
if (((Msg->Class == MOUSEBUTTONS) && (IEQUALIFIER_RBUTTON & Msg->Qualifier)) ||
|
if (((Msg->Class == MOUSEBUTTONS) && (IEQUALIFIER_RBUTTON & Msg->Qualifier)) ||
|
||||||
((Msg->Class == RAWKEY) && (Msg->Code == 27)))
|
((Msg->Class == RAWKEY) && (Msg->Code == 27))
|
||||||
|
)
|
||||||
QuitIntro = true;
|
QuitIntro = true;
|
||||||
|
|
||||||
replyMsg(Msg);
|
replyMsg(Msg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue