diff options
author | Eugene Sandulenko | 2014-01-02 15:15:27 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-02 15:15:27 +0200 |
commit | b6f4bce10c77d893a3c749f08dcc1227ec78a8bb (patch) | |
tree | e463815fb08aeaf0d16d3092172d8c265185e5d1 /engines/fullpipe/scenes | |
parent | fcae83afad870dfa0b6986c1b6d2f151675d4218 (diff) | |
download | scummvm-rg350-b6f4bce10c77d893a3c749f08dcc1227ec78a8bb.tar.gz scummvm-rg350-b6f4bce10c77d893a3c749f08dcc1227ec78a8bb.tar.bz2 scummvm-rg350-b6f4bce10c77d893a3c749f08dcc1227ec78a8bb.zip |
FULLPIPE: Rename vars in scene36
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r-- | engines/fullpipe/scenes/scene36.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/fullpipe/scenes/scene36.cpp b/engines/fullpipe/scenes/scene36.cpp index b973ec9ccd..7d237fd395 100644 --- a/engines/fullpipe/scenes/scene36.cpp +++ b/engines/fullpipe/scenes/scene36.cpp @@ -37,10 +37,6 @@ namespace Fullpipe { void scene36_initScene(Scene *sc) { - g_vars->scene36_var01 = 200; - g_vars->scene36_var02 = 200; - g_vars->scene36_var03 = 300; - g_vars->scene36_var04 = 300; g_vars->scene36_rotohrust = sc->getStaticANIObject1ById(ANI_ROTOHRUST, -1); g_vars->scene36_scissors = sc->getStaticANIObject1ById(ANI_SCISSORS_36, -1); } @@ -79,11 +75,11 @@ int sceneHandler36(ExCommand *cmd) { if (g_fp->_aniMan2) { int x = g_fp->_aniMan2->_ox; - if (x < g_fp->_sceneRect.left + g_vars->scene36_var01) - g_fp->_currentScene->_x = x - g_vars->scene36_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->scene36_var01) - g_fp->_currentScene->_x = x + g_vars->scene36_var03 - g_fp->_sceneRect.right; + if (x > g_fp->_sceneRect.right - 200) + g_fp->_currentScene->_x = x + 300 - g_fp->_sceneRect.right; } g_fp->_behaviorManager->updateBehaviors(); |