aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/shootemup.cpp
diff options
context:
space:
mode:
authoruruk2014-03-01 23:29:01 +0100
committeruruk2014-03-01 23:29:01 +0100
commit007d68006aaaf1025e246b6a9f7c25fd789958b2 (patch)
treed8c486d117be342ef89fd14df6d2714c43885647 /engines/avalanche/shootemup.cpp
parentf8b61872efda59c12a00d2d80d819394cdd6488b (diff)
downloadscummvm-rg350-007d68006aaaf1025e246b6a9f7c25fd789958b2.tar.gz
scummvm-rg350-007d68006aaaf1025e246b6a9f7c25fd789958b2.tar.bz2
scummvm-rg350-007d68006aaaf1025e246b6a9f7c25fd789958b2.zip
AVALANCHE: Repair ShootEmUp::run().
Diffstat (limited to 'engines/avalanche/shootemup.cpp')
-rw-r--r--engines/avalanche/shootemup.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/avalanche/shootemup.cpp b/engines/avalanche/shootemup.cpp
index c85004d81f..8d61316daa 100644
--- a/engines/avalanche/shootemup.cpp
+++ b/engines/avalanche/shootemup.cpp
@@ -117,7 +117,7 @@ void ShootEmUp::run() {
setup();
- do {
+ while ((_time != 0) && (!_vm->shouldQuit())) {
uint32 beginLoop = _vm->_system->getMillis();
blankIt();
@@ -141,8 +141,7 @@ void ShootEmUp::run() {
uint32 delay = _vm->_system->getMillis() - beginLoop;
if (delay <= 55)
_vm->_system->delayMillis(55 - delay); // Replaces slowdown(); 55 comes from 18.2 Hz (B Flight).
-
- } while (_time != 0);
+ };
_vm->fadeOut();
_vm->_graphics->restoreScreen();