aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTravis Howell2007-07-27 11:54:50 +0000
committerTravis Howell2007-07-27 11:54:50 +0000
commit00cc7958ff29e8cce04b97e8dcbd6421908c980d (patch)
tree412e7e2ee97df44c1a994608c16dfbe1d6d3d590 /engines/agos
parent3ca5bb8689c4765679827077b5b42d8782c716eb (diff)
downloadscummvm-rg350-00cc7958ff29e8cce04b97e8dcbd6421908c980d.tar.gz
scummvm-rg350-00cc7958ff29e8cce04b97e8dcbd6421908c980d.tar.bz2
scummvm-rg350-00cc7958ff29e8cce04b97e8dcbd6421908c980d.zip
Fix loading restart state file in Amiga version of Waxworks.
svn-id: r28234
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/saveload.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp
index 32b767073a..44fc35d6ac 100644
--- a/engines/agos/saveload.cpp
+++ b/engines/agos/saveload.cpp
@@ -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 {