aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dm.cpp
diff options
context:
space:
mode:
authorBendegúz Nagy2016-07-11 14:55:56 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commitdd3f12c7d5b85cb8bd6644a8c9de9fe49ca4166a (patch)
tree17cbb88332f7a2ab946b5862301316cc37990b56 /engines/dm/dm.cpp
parent8c7760bd610173740e623eeac02bf0728488b1c4 (diff)
downloadscummvm-rg350-dd3f12c7d5b85cb8bd6644a8c9de9fe49ca4166a.tar.gz
scummvm-rg350-dd3f12c7d5b85cb8bd6644a8c9de9fe49ca4166a.tar.bz2
scummvm-rg350-dd3f12c7d5b85cb8bd6644a8c9de9fe49ca4166a.zip
DM: Complete main gameloop
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r--engines/dm/dm.cpp24
1 files changed, 19 insertions, 5 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index 86e7000498..fd3c30ec1c 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -378,13 +378,27 @@ T0002002:
_g311_projectileDisableMovementTicks--;
_g321_stopWaitingForPlayerInput = false;
- //do {
- _eventMan->processInput();
- _eventMan->f380_processCommandQueue();
- //} while (!_g321_stopWaitingForPlayerInput /*|| !_g301_gameTimeTicking */);
+ do {
+ _eventMan->processInput();
+
+ if (_g332_stopPressingEye) {
+ _g331_pressingEye = false;
+ _g332_stopPressingEye = false;
+ _inventoryMan->f353_drawStopPressingEye();
+ } else if (_g334_stopPressingMouth) {
+ _g333_pressingMouth = false;
+ _g334_stopPressingMouth = false;
+ _inventoryMan->f350_drawStopPressingMouth();
+ }
+
+ _eventMan->f380_processCommandQueue();
+ _displayMan->updateScreen();
+ // if (!_vm->_g321_stopWaitingForPlayerInput) {
+ warning(false, "MISSING CODE: F0363_COMMAND_HighlightBoxDisable");
+ // }
+ } while (!_g321_stopWaitingForPlayerInput || !_g301_gameTimeTicking);
- _displayMan->updateScreen();
_system->delayMillis(18);
}
}