From e0aef914fd2ef0eb852ea325028d29991e2f9a62 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 13 Nov 2005 19:35:01 +0000 Subject: Fixed a bug with the sprite loader and various things related to the scene switching code. Now the intro works correctly with a minor graphics glitch. svn-id: r19588 --- kyra/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kyra/script.cpp') diff --git a/kyra/script.cpp b/kyra/script.cpp index c30e25208b..cf93823992 100644 --- a/kyra/script.cpp +++ b/kyra/script.cpp @@ -207,7 +207,7 @@ bool ScriptHelper::runScript(ScriptState *script) { opcode = 0; _parameter = code & 0x7FFF; } else if (code & 0x4000) { - _parameter = code & 0xFF; + _parameter = (int8)(code); } else if (code & 0x2000) { _parameter = READ_BE_UINT16(_curScript->ip); _curScript->ip += 2; } else { -- cgit v1.2.3