[Scummvm-cvs-logs] scummvm master -> d58775f792c40c99d06c8041c0c52a6494a21eb9
sev-
sev at scummvm.org
Sat Nov 23 03:26:54 CET 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d58775f792 FULLPIPE: Implement sceneHandler04_updateBottle()
Commit: d58775f792c40c99d06c8041c0c52a6494a21eb9
https://github.com/scummvm/scummvm/commit/d58775f792c40c99d06c8041c0c52a6494a21eb9
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-11-22T15:17:20-08:00
Commit Message:
FULLPIPE: Implement sceneHandler04_updateBottle()
Changed paths:
engines/fullpipe/scenes/scene04.cpp
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index 5e14547..dbcff07 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() {
More information about the Scummvm-git-logs
mailing list