Fix loading restart state file in Amiga version of Waxworks.
svn-id: r28234
This commit is contained in:
parent
3ca5bb8689
commit
00cc7958ff
1 changed files with 3 additions and 2 deletions
|
@ -1173,7 +1173,7 @@ bool AGOSEngine_Elvira2::loadGame(const char *filename, bool restartMode) {
|
|||
addTimeEvent(timeout, subroutine_id);
|
||||
}
|
||||
|
||||
if (getGameType() == GType_WW) {
|
||||
if (getGameType() == GType_WW && getPlatform() == Common::kPlatformPC) {
|
||||
// TODO Load room state data
|
||||
for (uint s = 0; s <= _numRoomStates; s++) {
|
||||
f->readUint16BE();
|
||||
|
@ -1185,7 +1185,8 @@ bool AGOSEngine_Elvira2::loadGame(const char *filename, bool restartMode) {
|
|||
for (num = _itemArrayInited - 1; num; num--) {
|
||||
Item *item = _itemArrayPtr[item_index++], *parent_item;
|
||||
|
||||
if (getGameType() == GType_ELVIRA2) {
|
||||
if ((getGameType() == GType_WW && getPlatform() == Common::kPlatformAmiga) ||
|
||||
getGameType() == GType_ELVIRA2) {
|
||||
parent_item = derefItem(readItemID(f));
|
||||
setItemParent(item, parent_item);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue