aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/adl.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2016-03-16 11:04:34 +0100
committerWalter van Niftrik2016-06-06 20:35:49 +0200
commit7ff7e0def4670fee3346c4b75aa1e79d2f684bb0 (patch)
treef4902ac3fa3cd855875b01e7fcd370d435db2015 /engines/adl/adl.cpp
parent0a6b7fb6a6414caa4d8654a75e07b6a33ef6cce3 (diff)
downloadscummvm-rg350-7ff7e0def4670fee3346c4b75aa1e79d2f684bb0.tar.gz
scummvm-rg350-7ff7e0def4670fee3346c4b75aa1e79d2f684bb0.tar.bz2
scummvm-rg350-7ff7e0def4670fee3346c4b75aa1e79d2f684bb0.zip
ADL: Add hires2 command loading
Diffstat (limited to 'engines/adl/adl.cpp')
-rw-r--r--engines/adl/adl.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp
index 81c9054bb2..1afc530ad4 100644
--- a/engines/adl/adl.cpp
+++ b/engines/adl/adl.cpp
@@ -273,6 +273,11 @@ void AdlEngine::readCommands(Common::ReadStream &stream, Commands &commands) {
}
}
+void AdlEngine::checkInput(byte verb, byte noun) {
+ if (!doOneCommand(_roomCommands, verb, noun))
+ printMessage(_messageIds.dontUnderstand);
+}
+
void AdlEngine::clearScreen() const {
_display->setMode(DISPLAY_MODE_MIXED);
_display->clear(0x00);
@@ -448,8 +453,7 @@ Common::Error AdlEngine::run() {
// If we just restored from the GMM, we skip this command
// set, as no command has been input by the user
if (!_isRestoring)
- if (!doOneCommand(_roomCommands, verb, noun))
- printMessage(_messageIds.dontUnderstand);
+ checkInput(verb, noun);
}
if (_isRestoring) {