diff options
author | Eugene Sandulenko | 2014-06-12 10:32:45 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2014-06-12 10:32:45 +0300 |
commit | 18242b8a2997435353b9c2cfdccb0f4905c443ce (patch) | |
tree | 4dce9b8bab5a6a2c89ccac989e6db9c6cb20edeb /engines/fullpipe | |
parent | 0fe605be4b4f6c5890088c5f59e367f4074f8a0f (diff) | |
download | scummvm-rg350-18242b8a2997435353b9c2cfdccb0f4905c443ce.tar.gz scummvm-rg350-18242b8a2997435353b9c2cfdccb0f4905c443ce.tar.bz2 scummvm-rg350-18242b8a2997435353b9c2cfdccb0f4905c443ce.zip |
FULLPIPE: Implement GameLoader::restoreDefPicAniInfos()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/gameloader.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/fullpipe/gameloader.cpp b/engines/fullpipe/gameloader.cpp index c8b01939dd..0599295160 100644 --- a/engines/fullpipe/gameloader.cpp +++ b/engines/fullpipe/gameloader.cpp @@ -635,7 +635,16 @@ bool readSavegameHeader(Common::InSaveFile *in, FullpipeSavegameHeader &header) } void GameLoader::restoreDefPicAniInfos() { - warning("STUB: restoreDefPicAniInfos()"); + for (uint i = 0; i < _sc2array.size(); i++) { + if (_sc2array[i]._picAniInfos) { + free(_sc2array[i]._picAniInfos); + _sc2array[i]._picAniInfos = 0; + _sc2array[i]._picAniInfosCount = 0; + } + + if (_sc2array[i]._scene) + applyPicAniInfos(_sc2array[i]._scene, _sc2array[i]._defPicAniInfos, _sc2array[i]._defPicAniInfosCount); + } } GameVar *FullpipeEngine::getGameLoaderGameVar() { |