[Scummvm-cvs-logs] scummvm master -> 88bc539b3e01d068529ad9945a843b6ace52a109

Strangerke Strangerke at scummvm.org
Wed May 28 21:25:42 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:
88bc539b3e MADS: Add a constructor to SceneInfo


Commit: 88bc539b3e01d068529ad9945a843b6ace52a109
    https://github.com/scummvm/scummvm/commit/88bc539b3e01d068529ad9945a843b6ace52a109
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-05-28T21:24:14+02:00

Commit Message:
MADS: Add a constructor to SceneInfo

Changed paths:
    engines/mads/scene_data.cpp
    engines/mads/scene_data.h



diff --git a/engines/mads/scene_data.cpp b/engines/mads/scene_data.cpp
index 6697041..de75b04 100644
--- a/engines/mads/scene_data.cpp
+++ b/engines/mads/scene_data.cpp
@@ -95,6 +95,22 @@ void SceneInfo::SpriteInfo::load(Common::SeekableReadStream *f) {
 
 /*------------------------------------------------------------------------*/
 
+SceneInfo::SceneInfo(MADSEngine *vm) : _vm(vm) {
+	_sceneId = 0;
+	_artFileNum = 0;
+	_depthStyle = 0;
+	_width = 0;
+	_height = 0;
+	_yBandsEnd = 0;
+	_yBandsStart = 0;
+	_maxScale = 0;
+	_minScale = 0;
+	_field4A = 0;
+	_usageIndex = 0;
+	for (int i = 0; i < 15; ++i)
+		_depthList[i] = 0;
+}
+
 SceneInfo *SceneInfo::init(MADSEngine *vm) {
 	switch (vm->getGameID()) {
 	case GType_RexNebular:
diff --git a/engines/mads/scene_data.h b/engines/mads/scene_data.h
index 78b43fb..783a9ab 100644
--- a/engines/mads/scene_data.h
+++ b/engines/mads/scene_data.h
@@ -154,7 +154,7 @@ protected:
 	/**
 	 * Constructor
 	 */
-	SceneInfo(MADSEngine *vm) : _vm(vm) {}
+	SceneInfo(MADSEngine *vm);
 public:
 	int _sceneId;
 	int _artFileNum;
@@ -167,7 +167,7 @@ public:
 	int _maxScale;
 	int _minScale;
 	int _depthList[DEPTH_BANDS_SIZE];
-	int _field4A;
+	int _field4A; // Useless field ?
 
 	int _usageIndex;
 	Common::Array<PaletteCycle> _paletteCycles;






More information about the Scummvm-git-logs mailing list