aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene_data.cpp
diff options
context:
space:
mode:
authorStrangerke2014-05-28 21:24:14 +0200
committerStrangerke2014-05-28 21:24:14 +0200
commit88bc539b3e01d068529ad9945a843b6ace52a109 (patch)
treeaf4f78939c0951babf7aed1b175235d88a0b66de /engines/mads/scene_data.cpp
parent38ee05d75bb19d7a607bc85472d67281e43d72d0 (diff)
downloadscummvm-rg350-88bc539b3e01d068529ad9945a843b6ace52a109.tar.gz
scummvm-rg350-88bc539b3e01d068529ad9945a843b6ace52a109.tar.bz2
scummvm-rg350-88bc539b3e01d068529ad9945a843b6ace52a109.zip
MADS: Add a constructor to SceneInfo
Diffstat (limited to 'engines/mads/scene_data.cpp')
-rw-r--r--engines/mads/scene_data.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/mads/scene_data.cpp b/engines/mads/scene_data.cpp
index 6697041677..de75b04457 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: