diff options
author | Filippos Karapetis | 2014-12-07 15:39:11 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-12-07 15:39:11 +0200 |
commit | 815851e959bb46b2b9fd0de7ff9d04c9097d6908 (patch) | |
tree | 434aa93c0affbe8c64520b81b45ca2a840b38a02 /engines | |
parent | b3e45ccc6854c93e73fcda0f9daa67ffad76a3a1 (diff) | |
download | scummvm-rg350-815851e959bb46b2b9fd0de7ff9d04c9097d6908.tar.gz scummvm-rg350-815851e959bb46b2b9fd0de7ff9d04c9097d6908.tar.bz2 scummvm-rg350-815851e959bb46b2b9fd0de7ff9d04c9097d6908.zip |
MADS: Remove unused reference to MADSEngine
Thanks to fingolfin for finding out the unused reference
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/msurface.h | 4 | ||||
-rw-r--r-- | engines/mads/scene.cpp | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/engines/mads/msurface.h b/engines/mads/msurface.h index ebfb1f437a..650d7fdaee 100644 --- a/engines/mads/msurface.h +++ b/engines/mads/msurface.h @@ -223,8 +223,6 @@ public: }; class DepthSurface : public MSurface { -private: - MADSEngine *_vm; public: /** * Depth style @@ -234,7 +232,7 @@ public: /** * Constructor */ - DepthSurface(MADSEngine *vm) : _vm(vm), _depthStyle(0) {} + DepthSurface() : _depthStyle(0) {} /** * Returns the depth at a given position diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp index 18ceb3c813..d2b4b29622 100644 --- a/engines/mads/scene.cpp +++ b/engines/mads/scene.cpp @@ -31,7 +31,7 @@ namespace MADS { Scene::Scene(MADSEngine *vm) - : _vm(vm), _action(_vm), _depthSurface(vm), + : _vm(vm), _action(_vm), _depthSurface(), _dirtyAreas(_vm), _dynamicHotspots(vm), _hotspots(vm), _kernelMessages(vm), _sequences(vm), _sprites(vm), _spriteSlots(vm), _textDisplay(vm), _userInterface(vm) { @@ -182,7 +182,7 @@ void Scene::loadScene(int sceneId, const Common::String &prefix, bool palFlag) { flags |= ANIMFLAG_LOAD_BACKGROUND_ONLY; _animationData = Animation::init(_vm, this); - DepthSurface depthSurface(_vm); + DepthSurface depthSurface; _animationData->load(_userInterface, depthSurface, prefix, flags, nullptr, nullptr); _vm->_palette->_paletteUsage.load(&_scenePaletteUsage); @@ -611,7 +611,7 @@ void Scene::loadAnimation(const Common::String &resName, int trigger) { if (_activeAnimation) freeAnimation(); - DepthSurface depthSurface(_vm); + DepthSurface depthSurface; UserInterface interfaceSurface(_vm); _activeAnimation = Animation::init(_vm, this); |