aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script_e2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agos/script_e2.cpp')
-rw-r--r--engines/agos/script_e2.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp
index ee73c0f771..64df361a56 100644
--- a/engines/agos/script_e2.cpp
+++ b/engines/agos/script_e2.cpp
@@ -48,7 +48,7 @@ void AGOSEngine::setupElvira2Opcodes(OpcodeProc *op) {
op[75] = &AGOSEngine::oe1_pcName;
op[79] = &AGOSEngine::oe1_isCalled;
op[83] = &AGOSEngine::oe1_rescan;
- op[89] = &AGOSEngine::oe1_loadGame;
+ op[89] = &AGOSEngine::oe2_loadGame;
op[94] = &AGOSEngine::oe1_findMaster;
op[95] = &AGOSEngine::oe1_nextMaster;
op[98] = &AGOSEngine::oe1_animate;
@@ -127,6 +127,14 @@ void AGOSEngine::oe2_pObj() {
showMessageFormat((const char *)getStringPtrByID(subObject->objectFlagValue[0]));
}
+void AGOSEngine::oe2_loadGame() {
+ // 89: load game
+ uint16 stringId = getNextStringID();
+
+ debug(0, "oe1_loadGame: stub (%s)", (const char *)getStringPtrByID(stringId));
+ loadGame((const char *)getStringPtrByID(stringId));
+}
+
void AGOSEngine::oe2_drawItem() {
// 113: draw item
Item *i = getNextItemPtr();