mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 11:41:25 +00:00
Ooops, keep that comment.
svn-id: r40034
This commit is contained in:
parent
acc86f5c62
commit
64fef497df
@ -378,6 +378,10 @@ int ScummEngine_v5::getVarOrDirectWord(byte mask) {
|
||||
}
|
||||
|
||||
void ScummEngine_v5::jumpRelative(bool cond) {
|
||||
// We explicitly call ScummEngine::fetchScriptWord()
|
||||
// to make this method work also in v0, which overloads
|
||||
// fetchScriptWord to only read bytes (which is the right thing
|
||||
// to do for most opcodes, but not for jump offsets).
|
||||
int16 offset = ScummEngine::fetchScriptWord();
|
||||
if (!cond)
|
||||
_scriptPointer += offset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user