aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/newplace.cpp
diff options
context:
space:
mode:
authorMax Horn2011-12-28 20:31:50 +0100
committerMax Horn2011-12-28 23:06:49 +0100
commitdc4af2afc2013a0ab20955440221dc55332a0063 (patch)
tree4caaab5db863efc599092eb02a443334cdc11ab8 /engines/dreamweb/newplace.cpp
parentbfd891d571bfad4d0e192a0db0b9b1bba4ffe4a7 (diff)
downloadscummvm-rg350-dc4af2afc2013a0ab20955440221dc55332a0063.tar.gz
scummvm-rg350-dc4af2afc2013a0ab20955440221dc55332a0063.tar.bz2
scummvm-rg350-dc4af2afc2013a0ab20955440221dc55332a0063.zip
DREAMWEB: Added commandOnlyCond() method
Diffstat (limited to 'engines/dreamweb/newplace.cpp')
-rw-r--r--engines/dreamweb/newplace.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/engines/dreamweb/newplace.cpp b/engines/dreamweb/newplace.cpp
index 248f04a4d9..0d7c5a18fe 100644
--- a/engines/dreamweb/newplace.cpp
+++ b/engines/dreamweb/newplace.cpp
@@ -103,10 +103,7 @@ void DreamWebEngine::showCity() {
}
void DreamWebEngine::lookAtPlace() {
- if (_commandType != 224) {
- _commandType = 224;
- commandOnly(27);
- }
+ commandOnlyCond(27, 224);
if (!(_mouseButton & 1) ||
_mouseButton == _oldButton ||
@@ -164,10 +161,7 @@ void DreamWebEngine::showArrows() {
}
void DreamWebEngine::nextDest() {
- if (_commandType != 218) {
- _commandType = 218;
- commandOnly(28);
- }
+ commandOnlyCond(28, 218);
if (!(_mouseButton & 1) || _oldButton == 1)
return; // nodu
@@ -193,10 +187,7 @@ void DreamWebEngine::nextDest() {
}
void DreamWebEngine::lastDest() {
- if (_commandType != 219) {
- _commandType = 219;
- commandOnly(29);
- }
+ commandOnlyCond(29, 219);
if (!(_mouseButton & 1) || _oldButton == 1)
return; // nodd
@@ -222,10 +213,7 @@ void DreamWebEngine::lastDest() {
}
void DreamWebEngine::destSelect() {
- if (_commandType != 222) {
- _commandType = 222;
- commandOnly(30);
- }
+ commandOnlyCond(30, 222);
if (!(_mouseButton & 1) || _oldButton == 1)
return; // notrav