Fix loading restart state file in Amiga version of Waxworks.

svn-id: r28234
This commit is contained in:
Travis Howell 2007-07-27 11:54:50 +00:00
parent 3ca5bb8689
commit 00cc7958ff

View file

@ -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 {