aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/savegame.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2007-03-22 22:29:00 +0000
committerEugene Sandulenko2007-03-22 22:29:00 +0000
commit989f7b67cb918c609a68b74955f2131ae682e96e (patch)
treece4eb705833cba3da9e76a0243af5c1fe066a892 /engines/agi/savegame.cpp
parenta722b767a8a24906b512a0381fb49b1bcd59aa92 (diff)
downloadscummvm-rg350-989f7b67cb918c609a68b74955f2131ae682e96e.tar.gz
scummvm-rg350-989f7b67cb918c609a68b74955f2131ae682e96e.tar.bz2
scummvm-rg350-989f7b67cb918c609a68b74955f2131ae682e96e.zip
- Save AGIPAL resource number properly
- Move GfxMgr constructor to .cpp file svn-id: r26278
Diffstat (limited to 'engines/agi/savegame.cpp')
-rw-r--r--engines/agi/savegame.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/agi/savegame.cpp b/engines/agi/savegame.cpp
index 566f2945b0..4f25b58cc5 100644
--- a/engines/agi/savegame.cpp
+++ b/engines/agi/savegame.cpp
@@ -202,8 +202,7 @@ int AgiEngine::saveGame(const char *fileName, const char *description) {
out->writeByte(0);
//Write which file number AGIPAL is using (0 if not being used)
- if ((getFeatures() & GF_AGIPAL))
- out->writeSint16BE(_gfx->getAGIPalFileNum());
+ out->writeSint16BE(_gfx->getAGIPalFileNum());
out->finalize();
if (out->ioFailed())
@@ -440,7 +439,7 @@ int AgiEngine::loadGame(const char *fileName) {
}
//Load AGIPAL Data
- if ((getFeatures() & GF_AGIPAL) && (saveVersion >= 3))
+ if (saveVersion >= 3)
_gfx->setAGIPal(in->readSint16BE());
delete in;