[Scummvm-cvs-logs] scummvm master -> 18242b8a2997435353b9c2cfdccb0f4905c443ce
sev-
sev at scummvm.org
Thu Jun 12 09:59:00 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
18242b8a29 FULLPIPE: Implement GameLoader::restoreDefPicAniInfos()
Commit: 18242b8a2997435353b9c2cfdccb0f4905c443ce
https://github.com/scummvm/scummvm/commit/18242b8a2997435353b9c2cfdccb0f4905c443ce
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2014-06-12T10:32:45+03:00
Commit Message:
FULLPIPE: Implement GameLoader::restoreDefPicAniInfos()
Changed paths:
engines/fullpipe/gameloader.cpp
diff --git a/engines/fullpipe/gameloader.cpp b/engines/fullpipe/gameloader.cpp
index c8b0193..0599295 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() {
More information about the Scummvm-git-logs
mailing list