diff options
author | Johannes Schickel | 2009-09-21 01:15:11 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-09-21 01:15:11 +0000 |
commit | 756659b00e3c09a8aa958ef5b4e519d3dafcc4f0 (patch) | |
tree | aa0f67b1ab7168777ffaa405a735598dc4c213ff | |
parent | 94e359d3fb1b061cb452e35a2b63eed4f3d77cd9 (diff) | |
download | scummvm-rg350-756659b00e3c09a8aa958ef5b4e519d3dafcc4f0.tar.gz scummvm-rg350-756659b00e3c09a8aa958ef5b4e519d3dafcc4f0.tar.bz2 scummvm-rg350-756659b00e3c09a8aa958ef5b4e519d3dafcc4f0.zip |
Add more shouldQuit checks in event loops.
svn-id: r44230
-rw-r--r-- | engines/cine/various.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp index 7192afcd92..015ee1dd2f 100644 --- a/engines/cine/various.cpp +++ b/engines/cine/various.cpp @@ -694,7 +694,7 @@ int16 makeMenuChoice(const CommandeType commandList[], uint16 height, uint16 X, do { manageEvents(); getMouseData(mouseUpdateStatus, &button, &dummyU16, &dummyU16); - } while (button); + } while (button && !g_cine->shouldQuit()); var_A = 0; @@ -764,7 +764,7 @@ int16 makeMenuChoice(const CommandeType commandList[], uint16 height, uint16 X, // } } - } while (!var_A); + } while (!var_A && !g_cine->shouldQuit()); assert(!needMouseSave); @@ -775,7 +775,7 @@ int16 makeMenuChoice(const CommandeType commandList[], uint16 height, uint16 X, do { manageEvents(); getMouseData(mouseUpdateStatus, &button, &dummyU16, &dummyU16); - } while (button); + } while (button && !g_cine->shouldQuit()); if (var_4 == 2) { // recheck if (!recheckValue) @@ -860,7 +860,7 @@ uint16 executePlayerInput(void) { do { manageEvents(); getMouseData(mouseUpdateStatus, &mouseButton, &dummyU16, &dummyU16); - } while (mouseButton); + } while (mouseButton && !g_cine->shouldQuit()); si = getObjectUnderCursor(mouseX, mouseY); @@ -976,7 +976,7 @@ uint16 executePlayerInput(void) { di = 0; getMouseData(mouseUpdateStatus, &mouseButton, &mouseX, &mouseY); - while (mouseButton) { + while (mouseButton && !g_cine->shouldQuit()) { if (mouseButton & 1) { di |= 1; } @@ -1619,7 +1619,7 @@ bool makeTextEntryMenu(const char *messagePtr, char *inputString, int stringMaxL getMouseData(0, &mouseButton, &mouseX, &mouseY); - if (mouseButton & 2) + if ((mouseButton & 2) || g_cine->shouldQuit()) quit = 2; else if (mouseButton & 1) quit = 1; |