diff options
author | Strangerke | 2016-04-23 11:47:07 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 09:54:21 +0200 |
commit | 417d8066c9d0b8938fe9ebeaa3a256143555684b (patch) | |
tree | 46ee55cbeb9ea7326e481c1170f8a70d06b46138 /engines/gnap/scenes/scenecore.cpp | |
parent | d1e7c9f594c6ad3ac31a3649e39db85e1be72d79 (diff) | |
download | scummvm-rg350-417d8066c9d0b8938fe9ebeaa3a256143555684b.tar.gz scummvm-rg350-417d8066c9d0b8938fe9ebeaa3a256143555684b.tar.bz2 scummvm-rg350-417d8066c9d0b8938fe9ebeaa3a256143555684b.zip |
GNAP: Refactor scene 24
Diffstat (limited to 'engines/gnap/scenes/scenecore.cpp')
-rw-r--r-- | engines/gnap/scenes/scenecore.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/gnap/scenes/scenecore.cpp b/engines/gnap/scenes/scenecore.cpp index 0ecb9e530c..2865767a91 100644 --- a/engines/gnap/scenes/scenecore.cpp +++ b/engines/gnap/scenes/scenecore.cpp @@ -49,6 +49,7 @@ #include "gnap/scenes/scene21.h" #include "gnap/scenes/scene22.h" #include "gnap/scenes/scene23.h" +#include "gnap/scenes/scene24.h" #include "gnap/scenes/scene47.h" #include "gnap/scenes/scene48.h" #include "gnap/scenes/scene54.h" @@ -224,8 +225,9 @@ int GnapEngine::initSceneLogic() { initSceneGrid(21, 146, 11, 10); break; case 24: - backgroundId = scene24_init(); - scene24_updateHotspots(); + _scene = new Scene24(this); + backgroundId = _scene->init(); + _scene->updateHotspots(); _gameSys->setScaleValues(0, 500, 1, 1000); initSceneGrid(21, 136, 11, 10); break; @@ -546,7 +548,8 @@ void GnapEngine::runSceneLogic() { _newSceneNum = 20; break; case 24: - scene24_run(); + _scene->run(); + delete _scene; if (_newSceneNum == 55) _newSceneNum = 20; break; |