diff options
author | Travis Howell | 2004-09-14 15:06:02 +0000 |
---|---|---|
committer | Travis Howell | 2004-09-14 15:06:02 +0000 |
commit | 167f5d543f57e7856c003d488c7f56650c54e24e (patch) | |
tree | 78f99ad0c404baeb0c956bcd1120f3a63cd9c22b /scumm/saveload.cpp | |
parent | 8e1d3aa939d76cd91cbeb5544674da627ffb6428 (diff) | |
download | scummvm-rg350-167f5d543f57e7856c003d488c7f56650c54e24e.tar.gz scummvm-rg350-167f5d543f57e7856c003d488c7f56650c54e24e.tar.bz2 scummvm-rg350-167f5d543f57e7856c003d488c7f56650c54e24e.zip |
Save polygons
Move findObject changes to HE72
svn-id: r15118
Diffstat (limited to 'scumm/saveload.cpp')
-rw-r--r-- | scumm/saveload.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index 131fd5b299..7e120277b7 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -364,6 +364,27 @@ bool ScummEngine::getSavegameName(int slot, char *desc) { } void ScummEngine::saveOrLoad(Serializer *s, uint32 savegameVersion) { + const SaveLoadEntry polygonEntries[] = { + MKLINE(WizPolygon, vert[0].x, sleInt16, VER(40)), + MKLINE(WizPolygon, vert[0].y, sleInt16, VER(40)), + MKLINE(WizPolygon, vert[1].x, sleInt16, VER(40)), + MKLINE(WizPolygon, vert[1].y, sleInt16, VER(40)), + MKLINE(WizPolygon, vert[2].x, sleInt16, VER(40)), + MKLINE(WizPolygon, vert[2].y, sleInt16, VER(40)), + MKLINE(WizPolygon, vert[3].x, sleInt16, VER(40)), + MKLINE(WizPolygon, vert[3].y, sleInt16, VER(40)), + MKLINE(WizPolygon, vert[4].x, sleInt16, VER(40)), + MKLINE(WizPolygon, vert[4].y, sleInt16, VER(40)), + MKLINE(WizPolygon, bound.left, sleInt16, VER(40)), + MKLINE(WizPolygon, bound.top, sleInt16, VER(40)), + MKLINE(WizPolygon, bound.right, sleInt16, VER(40)), + MKLINE(WizPolygon, bound.bottom, sleInt16, VER(40)), + MKLINE(WizPolygon, id, sleInt16, VER(40)), + MKLINE(WizPolygon, numVerts, sleInt16, VER(40)), + MKLINE(WizPolygon, flag, sleByte, VER(40)), + MKEND() + }; + const SaveLoadEntry objectEntries[] = { MKLINE(ObjectData, OBIMoffset, sleUint32, VER(8)), MKLINE(ObjectData, OBCDoffset, sleUint32, VER(8)), @@ -696,6 +717,7 @@ void ScummEngine::saveOrLoad(Serializer *s, uint32 savegameVersion) { else s->saveLoadArrayOf(vm.slot, NUM_SCRIPT_SLOT, sizeof(vm.slot[0]), scriptSlotEntries); + s->saveLoadArrayOf(_WizPolygons, 200, sizeof(_WizPolygons[0]), polygonEntries); s->saveLoadArrayOf(_objs, _numLocalObjects, sizeof(_objs[0]), objectEntries); if (s->isLoading() && savegameVersion < VER(13)) { // Since roughly v13 of the save games, the objs storage has changed a bit |