FULLPIPE: Plug scene12 in

This commit is contained in:
Eugene Sandulenko 2013-12-24 18:52:36 +02:00
parent ee8d6c4723
commit d509744df5
3 changed files with 8 additions and 3 deletions

View File

@ -438,6 +438,7 @@ bool FullpipeEngine::sceneSwitcher(EntranceInfo *entrance) {
scene11_setupMusic();
_updateCursorCallback = scene11_updateCursor;
break;
#endif
case SC_12:
sceneVar = _gameLoader->_gameVar->getSubVarByName("SC_12");
@ -450,6 +451,7 @@ bool FullpipeEngine::sceneSwitcher(EntranceInfo *entrance) {
_updateCursorCallback = defaultUpdateCursor;
break;
#if 0
case SC_13:
sceneVar = _gameLoader->_gameVar->getSubVarByName("SC_13");
scene->preloadMovements(sceneVar);

View File

@ -72,6 +72,9 @@ void scene10_initScene(Scene *sc);
int sceneHandler10(ExCommand *cmd);
int scene10_updateCursor();
void scene12_initScene(Scene *sc);
int sceneHandler12(ExCommand *ex);
int scene15_updateCursor();
void scene15_initScene(Scene *sc);
int sceneHandler15(ExCommand *cmd);

View File

@ -35,16 +35,16 @@
namespace Fullpipe {
void scene12_initScene() {
void scene12_initScene(Scene *sc) {
GameVar *var = g_fp->getGameLoaderGameVar()->getSubVarByName("SC_12");
g_fp->_floaters->init(var);
g_vars->scene12_fly = g_fp->getObjectState("Муха_12");
g_vars->scene12_fly = g_fp->getObjectState(sO_Fly_12);
if (g_vars->scene12_fly)
g_vars->scene12_flyCountdown = 600 * g_fp->_rnd->getRandomNumber(32767) / 0x7fff + 600;
g_fp->setObjectState("Муха_12", g_fp->_rnd->getRandomNumber(1));
g_fp->setObjectState(sO_Fly_12, g_fp->_rnd->getRandomNumber(1));
}
void sceneHandler12_updateFloaters() {