diff options
Diffstat (limited to 'engines/agos/script_ww.cpp')
-rw-r--r-- | engines/agos/script_ww.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/agos/script_ww.cpp b/engines/agos/script_ww.cpp index 7bb378147a..09563df092 100644 --- a/engines/agos/script_ww.cpp +++ b/engines/agos/script_ww.cpp @@ -72,7 +72,7 @@ void AGOSEngine::setupWaxworksOpcodes(OpcodeProc *op) { op[148] = &AGOSEngine::oe2_ifDoorOpen; op[149] = &AGOSEngine::oe2_ifDoorClosed; op[150] = &AGOSEngine::oe2_ifDoorLocked; - op[162] = &AGOSEngine::oe2_screenTextMsg; + op[162] = &AGOSEngine::oww_screenTextMsg; op[175] = &AGOSEngine::o_getDollar2; op[179] = &AGOSEngine::o_isAdjNoun; op[180] = &AGOSEngine::o_b2Set; @@ -131,6 +131,12 @@ void AGOSEngine::oww_textMenu() { _textMenu[slot] = getVarOrByte(); } +void AGOSEngine::oww_screenTextMsg() { + // 162: print string + showMessageFormat("%s\n", getStringPtrByID(getNextStringID())); + getVarOrByte(); +} + void AGOSEngine::oww_boxMessage() { // 184: print message to box boxTextMessage((const char *)getStringPtrByID(getNextStringID())); |