Skip to content

Commit

Permalink
MADS: Add a constructor to SceneInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed May 28, 2014
1 parent 38ee05d commit 88bc539
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions engines/mads/scene_data.cpp
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions engines/mads/scene_data.h
Expand Up @@ -154,7 +154,7 @@ class SceneInfo {
/**
* Constructor
*/
SceneInfo(MADSEngine *vm) : _vm(vm) {}
SceneInfo(MADSEngine *vm);
public:
int _sceneId;
int _artFileNum;
Expand All @@ -167,7 +167,7 @@ class SceneInfo {
int _maxScale;
int _minScale;
int _depthList[DEPTH_BANDS_SIZE];
int _field4A;
int _field4A; // Useless field ?

int _usageIndex;
Common::Array<PaletteCycle> _paletteCycles;
Expand Down

0 comments on commit 88bc539

Please sign in to comment.