From 44763fcce90a9ccfb40d1430e015b45546f08569 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 11 Feb 2006 00:44:04 +0000 Subject: Add support for Spanish version of balloon svn-id: r20484 --- scumm/script.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'scumm/script.cpp') diff --git a/scumm/script.cpp b/scumm/script.cpp index f2562fef52..a3dee09d69 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -495,6 +495,22 @@ int ScummEngine::fetchScriptWordSigned() { return (int16)fetchScriptWord(); } +uint ScummEngine::fetchScriptDWord() { + int a; + if (*_lastCodePtr + sizeof(MemBlkHeader) != _scriptOrgPointer) { + uint32 oldoffs = _scriptPointer - _scriptOrgPointer; + getScriptBaseAddress(); + _scriptPointer = _scriptOrgPointer + oldoffs; + } + a = READ_LE_UINT32(_scriptPointer); + _scriptPointer += 4; + return a; +} + +int ScummEngine::fetchScriptDWordSigned() { + return (int32)fetchScriptDWord(); +} + int ScummEngine::readVar(uint var) { int a; -- cgit v1.2.3