diff options
author | Eugene Sandulenko | 2013-11-22 16:17:20 -0700 |
---|---|---|
committer | Eugene Sandulenko | 2013-11-22 16:17:20 -0700 |
commit | d58775f792c40c99d06c8041c0c52a6494a21eb9 (patch) | |
tree | d86979dea254dc4c92a191db52e3d864167bf729 | |
parent | dc8dc450fb7844ec3be2a45e6061981ea526fd4a (diff) | |
download | scummvm-rg350-d58775f792c40c99d06c8041c0c52a6494a21eb9.tar.gz scummvm-rg350-d58775f792c40c99d06c8041c0c52a6494a21eb9.tar.bz2 scummvm-rg350-d58775f792c40c99d06c8041c0c52a6494a21eb9.zip |
FULLPIPE: Implement sceneHandler04_updateBottle()
-rw-r--r-- | engines/fullpipe/scenes/scene04.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp index 5e1454793f..dbcff07003 100644 --- a/engines/fullpipe/scenes/scene04.cpp +++ b/engines/fullpipe/scenes/scene04.cpp @@ -340,8 +340,25 @@ void sceneHandler04_testPlank(ExCommand *ex) { warning("sceneHandler04_testPlank()"); } +void sceneHandler04_bottleUpdateObjects(int off) { + warning("sceneHandler04_bottleUpdateObjects()"); +} + void sceneHandler04_updateBottle() { - warning("sceneHandler04_updateBottle()"); + Common::Point point; + + int yoff; + + if (g_vars->scene04_hand->_movement) + yoff = g_vars->scene04_hand->_movement->_oy; + else + yoff = g_vars->scene04_hand->_oy; + + int newy = g_vars->scene04_hand->getSomeXY(point)->y + yoff + 140; + + sceneHandler04_bottleUpdateObjects(newy - g_vars->scene04_spring->_oy); + + g_vars->scene04_spring->setOXY(g_vars->scene04_spring->_ox, newy); } void sceneHandler04_winArcade() { |