Fix loading restart state in Waxworks for now.
svn-id: r26966
This commit is contained in:
parent
c42c65686e
commit
7d8619350f
7 changed files with 56 additions and 9 deletions
|
@ -980,6 +980,14 @@ bool AGOSEngine_Elvira2::loadGame(const char *filename, bool restartMode) {
|
|||
addTimeEvent(timeout, subroutine_id);
|
||||
}
|
||||
|
||||
if (getGameType() == GType_WW) {
|
||||
// TODO Load room state data
|
||||
for (uint s = 0; s <= _numRoomStates; s++) {
|
||||
f->readUint16BE();
|
||||
}
|
||||
f->readUint16BE();
|
||||
}
|
||||
|
||||
item_index = 1;
|
||||
for (num = _itemArrayInited - 1; num; num--) {
|
||||
Item *item = _itemArrayPtr[item_index++], *parent_item;
|
||||
|
@ -1120,6 +1128,14 @@ bool AGOSEngine_Elvira2::saveGame(uint slot, const char *caption) {
|
|||
f->writeUint16BE(te->subroutine_id);
|
||||
}
|
||||
|
||||
if (getGameType() == GType_WW) {
|
||||
// TODO Save room state data
|
||||
for (uint s = 0; s <= _numRoomStates; s++) {
|
||||
f->writeUint16BE(0);
|
||||
}
|
||||
f->writeUint16BE(_currentRoom);
|
||||
}
|
||||
|
||||
item_index = 1;
|
||||
for (num_item = _itemArrayInited - 1; num_item; num_item--) {
|
||||
Item *item = _itemArrayPtr[item_index++];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue