From 2620d6836c001f2f295cb6efd6beab78f5a3c50f Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 8 Mar 2009 08:45:21 +0000 Subject: Add initial support for Personal Nightmare. Thanks to dreammaster for file decompression and icon decoding code. NOTE: setjmp/longjmp code will require conversion for portability. svn-id: r39216 --- engines/agos/script_e2.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'engines/agos/script_e2.cpp') diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp index 655fc16ff1..8802ed921d 100644 --- a/engines/agos/script_e2.cpp +++ b/engines/agos/script_e2.cpp @@ -574,9 +574,7 @@ void AGOSEngine_Elvira2::oe2_ifExitLocked() { void AGOSEngine_Elvira2::oe2_playEffect() { // 174: play sound uint soundId = getVarOrWord(); - loadSound(soundId); - - debug(0, "oe2_playEffect: stub (%d)", soundId); + loadSound(soundId, 0, 0); } void AGOSEngine_Elvira2::oe2_getDollar2() { @@ -636,7 +634,7 @@ void AGOSEngine_Elvira2::oe2_printMonsterDamage() { void AGOSEngine_Elvira2::oe2_isAdjNoun() { // 179: item unk1 unk2 is Item *item = getNextItemPtr(); - int16 a = getNextWord(), b = getNextWord(); + int16 a = getNextWord(), n = getNextWord(); if (getGameType() == GType_ELVIRA2) { // WORKAROUND bug #1745996: A NULL item can occur when @@ -647,7 +645,7 @@ void AGOSEngine_Elvira2::oe2_isAdjNoun() { } } - setScriptCondition(item->adjective == a && item->noun == b); + setScriptCondition(item->adjective == a && item->noun == n); } void AGOSEngine_Elvira2::oe2_b2Set() { -- cgit v1.2.3