diff options
author | Eugene Sandulenko | 2014-01-07 17:20:15 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-07 17:20:15 +0200 |
commit | 9313c540afde6f06a91d247b2e2f2b7c0fb5a033 (patch) | |
tree | ca0433a8a3ba458af848a77f7a0fb0d44e84b7a9 /engines/fullpipe | |
parent | b495a16812ead9bae573dbf1c31aea7fe9e1b134 (diff) | |
download | scummvm-rg350-9313c540afde6f06a91d247b2e2f2b7c0fb5a033.tar.gz scummvm-rg350-9313c540afde6f06a91d247b2e2f2b7c0fb5a033.tar.bz2 scummvm-rg350-9313c540afde6f06a91d247b2e2f2b7c0fb5a033.zip |
FULLPIPE: Started renames in scene32
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/scenes.cpp | 8 | ||||
-rw-r--r-- | engines/fullpipe/scenes.h | 8 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene32.cpp | 30 |
3 files changed, 17 insertions, 29 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp index 36a7191f8c..ae5807f5c0 100644 --- a/engines/fullpipe/scenes.cpp +++ b/engines/fullpipe/scenes.cpp @@ -313,12 +313,8 @@ Vars::Vars() { scene31_cactus = 0; scene31_plusMinus = 0; - scene32_var01 = 0; - scene32_var02 = 0; - scene32_var03 = 0; - scene32_var04 = 0; - scene32_var05 = 0; - scene32_var06 = 0; + scene32_flagIsWaving = false; + scene32_flagNeedsStopping = false; scene32_var07 = 0; scene32_var08 = -1; scene32_var09 = 0; diff --git a/engines/fullpipe/scenes.h b/engines/fullpipe/scenes.h index c866e62a80..7b0b1b6ded 100644 --- a/engines/fullpipe/scenes.h +++ b/engines/fullpipe/scenes.h @@ -446,12 +446,8 @@ public: StaticANIObject *scene31_cactus; StaticANIObject *scene31_plusMinus; - int scene32_var01; - int scene32_var02; - int scene32_var03; - int scene32_var04; - int scene32_var05; - int scene32_var06; + bool scene32_flagIsWaving; + bool scene32_flagNeedsStopping; int scene32_var07; int scene32_var08; int scene32_var09; diff --git a/engines/fullpipe/scenes/scene32.cpp b/engines/fullpipe/scenes/scene32.cpp index 4b463c4d55..75f729aba6 100644 --- a/engines/fullpipe/scenes/scene32.cpp +++ b/engines/fullpipe/scenes/scene32.cpp @@ -37,12 +37,8 @@ namespace Fullpipe { void scene32_initScene(Scene *sc) { - g_vars->scene32_var01 = 200; - g_vars->scene32_var02 = 200; - g_vars->scene32_var03 = 300; - g_vars->scene32_var04 = 300; - g_vars->scene32_var05 = 0; - g_vars->scene32_var06 = 0; + g_vars->scene32_flagIsWaving = false; + g_vars->scene32_flagNeedsStopping = false; g_vars->scene32_var07 = 0; g_vars->scene32_var08 = -1; g_vars->scene32_var09 = 0; @@ -162,14 +158,14 @@ void sceneHandler32_startFlagLeft() { g_vars->scene32_flag->changeStatics2(ST_FLG_NORM); g_vars->scene32_flag->startAnim(MV_FLG_STARTL, 0, -1); - g_vars->scene32_var05 = 1; + g_vars->scene32_flagIsWaving = true; } void sceneHandler32_startFlagRight() { g_vars->scene32_flag->changeStatics2(ST_FLG_NORM); g_vars->scene32_flag->startAnim(MV_FLG_STARTR, 0, -1); - g_vars->scene32_var05 = 1; + g_vars->scene32_flagIsWaving = true; } void sceneHandler32_trySit(ExCommand *cmd) { @@ -307,8 +303,8 @@ int sceneHandler32(ExCommand *cmd) { break; case MSG_SC32_STOPFLAG: - g_vars->scene32_var05 = 0; - g_vars->scene32_var06 = 1; + g_vars->scene32_flagIsWaving = false; + g_vars->scene32_flagNeedsStopping = true; break; case MSG_SC32_SPIN: @@ -354,28 +350,28 @@ int sceneHandler32(ExCommand *cmd) { if (g_fp->_aniMan2) { int x = g_fp->_aniMan2->_ox; - if (x < g_fp->_sceneRect.left + g_vars->scene32_var01) - g_fp->_currentScene->_x = x - g_vars->scene32_var03 - g_fp->_sceneRect.left; + if (x < g_fp->_sceneRect.left + 200) + g_fp->_currentScene->_x = x - 300 - g_fp->_sceneRect.left; - if (x > g_fp->_sceneRect.right - g_vars->scene32_var01) - g_fp->_currentScene->_x = x + g_vars->scene32_var03 - g_fp->_sceneRect.right; + if (x > g_fp->_sceneRect.right - 200) + g_fp->_currentScene->_x = x + 300 - g_fp->_sceneRect.right; } if (!g_vars->scene32_flag->_movement) { - if (g_vars->scene32_var05) { + if (g_vars->scene32_flagIsWaving) { if (g_vars->scene32_flag->_statics->_staticsId == ST_FLG_RIGHT) g_vars->scene32_flag->startAnim(MV_FLG_CYCLER, 0, -1); else if (g_vars->scene32_flag->_statics->_staticsId == ST_FLG_LEFT) g_vars->scene32_flag->startAnim(MV_FLG_CYCLEL, 0, -1); } - if (g_vars->scene32_var06 && !g_vars->scene32_var05) { + if (g_vars->scene32_flagNeedsStopping && !g_vars->scene32_flagIsWaving) { if (g_vars->scene32_flag->_statics->_staticsId == ST_FLG_RIGHT) g_vars->scene32_flag->startAnim(MV_FLG_STOPR, 0, -1); else if (g_vars->scene32_flag->_statics->_staticsId == ST_FLG_LEFT) g_vars->scene32_flag->startAnim(MV_FLG_STOPL, 0, -1); - g_vars->scene32_var06 = 0; + g_vars->scene32_flagNeedsStopping = false; } } |