Fix objects structure and object scripts in PCE version of Loom.
svn-id: r45335
This commit is contained in:
parent
512c9cae11
commit
4350f7b8c0
2 changed files with 9 additions and 7 deletions
|
@ -214,9 +214,10 @@ int ScummEngine::getVerbEntrypoint(int obj, int entry) {
|
|||
verbptr += 3;
|
||||
} while (1);
|
||||
|
||||
if (_game.id == GID_LOOM && _game.platform == Common::kPlatformPCEngine)
|
||||
return verboffs + READ_LE_UINT16(verbptr + 1) + 3;
|
||||
else if (_game.features & GF_SMALL_HEADER)
|
||||
if (_game.id == GID_LOOM && _game.platform == Common::kPlatformPCEngine) {
|
||||
verbptr += READ_LE_UINT16(verbptr + 1) + 3;
|
||||
return verbptr - objptr;
|
||||
} else if (_game.features & GF_SMALL_HEADER)
|
||||
return READ_LE_UINT16(verbptr + 1);
|
||||
else
|
||||
return verboffs + READ_LE_UINT16(verbptr + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue