aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-02 15:15:27 +0200
committerEugene Sandulenko2014-01-02 15:15:27 +0200
commitb6f4bce10c77d893a3c749f08dcc1227ec78a8bb (patch)
treee463815fb08aeaf0d16d3092172d8c265185e5d1 /engines/fullpipe
parentfcae83afad870dfa0b6986c1b6d2f151675d4218 (diff)
downloadscummvm-rg350-b6f4bce10c77d893a3c749f08dcc1227ec78a8bb.tar.gz
scummvm-rg350-b6f4bce10c77d893a3c749f08dcc1227ec78a8bb.tar.bz2
scummvm-rg350-b6f4bce10c77d893a3c749f08dcc1227ec78a8bb.zip
FULLPIPE: Rename vars in scene36
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/scenes.cpp4
-rw-r--r--engines/fullpipe/scenes.h4
-rw-r--r--engines/fullpipe/scenes/scene36.cpp12
3 files changed, 4 insertions, 16 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index 7d02ec4a59..fa70b0a5e4 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -268,10 +268,6 @@ Vars::Vars() {
scene31_cactus = 0;
scene31_plusMinus = 0;
- scene36_var01 = 0;
- scene36_var02 = 0;
- scene36_var03 = 0;
- scene36_var04 = 0;
scene36_rotohrust = 0;
scene36_scissors = 0;
diff --git a/engines/fullpipe/scenes.h b/engines/fullpipe/scenes.h
index f1a10eecc7..fb3994910c 100644
--- a/engines/fullpipe/scenes.h
+++ b/engines/fullpipe/scenes.h
@@ -365,10 +365,6 @@ public:
StaticANIObject *scene31_cactus;
StaticANIObject *scene31_plusMinus;
- int scene36_var01;
- int scene36_var02;
- int scene36_var03;
- int scene36_var04;
StaticANIObject *scene36_rotohrust;
StaticANIObject *scene36_scissors;
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();