aboutsummaryrefslogtreecommitdiff
path: root/engines/access/amazon/amazon_game.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-29 21:03:11 -0400
committerPaul Gilbert2014-08-29 21:03:11 -0400
commit8b9faf7de563b5c3a00cc9935eccb5e60b816632 (patch)
tree2a8863b2da17c335e6438766b889f91b52a228e2 /engines/access/amazon/amazon_game.cpp
parent0ef365ab025cb77ab40e95e5e9139a5f86168fa6 (diff)
downloadscummvm-rg350-8b9faf7de563b5c3a00cc9935eccb5e60b816632.tar.gz
scummvm-rg350-8b9faf7de563b5c3a00cc9935eccb5e60b816632.tar.bz2
scummvm-rg350-8b9faf7de563b5c3a00cc9935eccb5e60b816632.zip
ACCESS: Add synchronize method for savegames
Diffstat (limited to 'engines/access/amazon/amazon_game.cpp')
-rw-r--r--engines/access/amazon/amazon_game.cpp40
1 files changed, 37 insertions, 3 deletions
diff --git a/engines/access/amazon/amazon_game.cpp b/engines/access/amazon/amazon_game.cpp
index cf383ce45a..0ccaae85dc 100644
--- a/engines/access/amazon/amazon_game.cpp
+++ b/engines/access/amazon/amazon_game.cpp
@@ -44,7 +44,7 @@ AmazonEngine::AmazonEngine(OSystem *syst, const AccessGameDescription *gameDesc)
_hitCount = 0;
_saveRiver = 0;
_hitSafe = 0;
- _oldTitleChap = _chapter = 0;
+ _oldTitleChapter = _chapter = 0;
_updateChapter = -1;
_topList = 0;
_botList = 0;
@@ -291,10 +291,10 @@ void AmazonEngine::tileScreen() {
if (!_screen->_vesaMode)
return;
- if (!_clearSummaryFlag && (_oldTitleChap == _chapter))
+ if (!_clearSummaryFlag && (_oldTitleChapter == _chapter))
return;
- _oldTitleChap = _chapter;
+ _oldTitleChapter = _chapter;
int idx = _chapter - 1;
if (!_files->existFile(_tileFiles[idx]))
@@ -361,6 +361,40 @@ void AmazonEngine::drawHelp() {
error("TODO: drawHelp");
}
+void AmazonEngine::synchronize(Common::Serializer &s) {
+ AccessEngine::synchronize(s);
+
+ s.syncAsSint16LE(_canoeLane);
+ s.syncAsSint16LE(_canoeYPos);
+ s.syncAsSint16LE(_hitCount);
+ s.syncAsSint16LE(_saveRiver);
+ s.syncAsSint16LE(_hitSafe);
+ s.syncAsSint16LE(_chapter);
+ s.syncAsSint16LE(_topList);
+ s.syncAsSint16LE(_botList);
+ s.syncAsSint16LE(_riverIndex);
+ s.syncAsSint16LE(_rawInactiveX);
+ s.syncAsSint16LE(_rawInactiveY);
+ s.syncAsSint16LE(_inactiveYOff);
+ for (int i = 0; i < 100; ++i)
+ s.syncAsSint16LE(_esTabTable[i]);
+}
+
+/*------------------------------------------------------------------------*/
+
+Guard::Guard() {
+ _guardCel = 0;
+ _gCode1 = _gCode2 = 0;
+ _xMid = _yMid = 0;
+}
+
+Plane::Plane() {
+ _pCount = 0;
+ _planeCount = 0;
+ _propCount = 0;
+ _xCount = 0;
+}
+
} // End of namespace Amazon
} // End of namespace Access