From 8dd52b6cce3835950f255f48d13f3d09a7dbe0ff Mon Sep 17 00:00:00 2001 From: Borja Lorente Date: Sat, 25 Jun 2016 17:38:15 +0200 Subject: MACVENTURE: Complete text decoding --- engines/macventure/script.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/macventure/script.cpp') 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); } -- cgit v1.2.3