aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/script.cpp
diff options
context:
space:
mode:
authorBorja Lorente2016-06-25 17:38:15 +0200
committerBorja Lorente2016-08-14 18:39:05 +0200
commit8dd52b6cce3835950f255f48d13f3d09a7dbe0ff (patch)
treec2338539d10fd5c6546984798a04eb779471584b /engines/macventure/script.cpp
parent499ebc0b54c79e89f4ee38628cea1f64cdf40bf2 (diff)
downloadscummvm-rg350-8dd52b6cce3835950f255f48d13f3d09a7dbe0ff.tar.gz
scummvm-rg350-8dd52b6cce3835950f255f48d13f3d09a7dbe0ff.tar.bz2
scummvm-rg350-8dd52b6cce3835950f255f48d13f3d09a7dbe0ff.zip
MACVENTURE: Complete text decoding
Diffstat (limited to 'engines/macventure/script.cpp')
-rw-r--r--engines/macventure/script.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/macventure/script.cpp b/engines/macventure/script.cpp
index 4c00054bb6..2e283e4c15 100644
--- a/engines/macventure/script.cpp
+++ b/engines/macventure/script.cpp
@@ -794,21 +794,21 @@ void ScriptEngine::opacEQ(EngineState * state, EngineFrame * frame) {
}
void ScriptEngine::opadEQS(EngineState * state, EngineFrame * frame) {
- Common::String b = _world->getText(state->pop());
- Common::String a = _world->getText(state->pop());
+ Common::String b = _world->getText(state->pop(), 0, 0); // HACK, these destinations might be wrong
+ Common::String a = _world->getText(state->pop(), 0, 0);
state->push((a == b) ? 1 : 0);
}
void ScriptEngine::opaeCONT(EngineState * state, EngineFrame * frame) {
- Common::String needle = _world->getText(state->pop());
- Common::String haystack = _world->getText(state->pop());
+ Common::String needle = _world->getText(state->pop(), 0, 0);
+ Common::String haystack = _world->getText(state->pop(), 0, 0);
haystack.toLowercase();
state->push(haystack.contains(needle) ? 1 : 0);
}
void ScriptEngine::opafCONTW(EngineState * state, EngineFrame * frame) {
- Common::String needle = _world->getText(state->pop());
- Common::String haystack = _world->getText(state->pop());
+ Common::String needle = _world->getText(state->pop(), 0, 0);
+ Common::String haystack = _world->getText(state->pop(), 0, 0);
haystack.toLowercase();
state->push(haystack.contains(needle) ? 1 : 0);
}