diff options
author | Colin Snover | 2017-11-12 13:43:42 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | 88a2eaba93a454562b99bd59f797533b9f6b4848 (patch) | |
tree | fb3211337eab804ec349add0783193d42b52123f /engines/fullpipe/scenes/scene08.cpp | |
parent | 136223026ecb4569bbd425ed586eb7de42979c9f (diff) | |
download | scummvm-rg350-88a2eaba93a454562b99bd59f797533b9f6b4848.tar.gz scummvm-rg350-88a2eaba93a454562b99bd59f797533b9f6b4848.tar.bz2 scummvm-rg350-88a2eaba93a454562b99bd59f797533b9f6b4848.zip |
FULLPIPE: Make dimensions/coordinate getters pure functions
Diffstat (limited to 'engines/fullpipe/scenes/scene08.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene08.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/fullpipe/scenes/scene08.cpp b/engines/fullpipe/scenes/scene08.cpp index 24b23c1506..00f8f93354 100644 --- a/engines/fullpipe/scenes/scene08.cpp +++ b/engines/fullpipe/scenes/scene08.cpp @@ -193,9 +193,7 @@ int sceneHandler08_calcOffset(int off, int flag) { } void sceneHandler08_pushCallback(int *par) { - Common::Point point; - - int y = g_fp->_aniMan->_oy + g_fp->_aniMan->getSomeXY(point)->y; + int y = g_fp->_aniMan->_oy + g_fp->_aniMan->getSomeXY().y; if (g_fp->_aniMan->_statics && g_fp->_aniMan->_statics->_staticsId == ST_MAN8_FLYDOWN) y -= 25; @@ -253,7 +251,7 @@ void sceneHandler08_airMoves() { int y = g_fp->_aniMan->_oy; Common::Point point; - if (703 - g_fp->_aniMan->getSomeXY(point)->y - y < 150) { + if (703 - g_fp->_aniMan->getSomeXY().y - y < 150) { if (g_fp->_aniMan->_statics) { if (g_fp->_aniMan->_statics->_staticsId == ST_MAN8_FLYDOWN) { y -= 25; @@ -358,7 +356,7 @@ void sceneHandler08_calcFlight() { if (g_vars->scene08_manOffsetY < g_vars->scene08_stairsOffset) g_vars->scene08_manOffsetY = g_vars->scene08_stairsOffset; - y = y + g_fp->_aniMan->getSomeXY(point)->y; + y = y + g_fp->_aniMan->getSomeXY().y; if (g_fp->_aniMan->_statics && g_fp->_aniMan->_statics->_staticsId == ST_MAN8_FLYDOWN) y -= 25; |