aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/fullpipe/motion.cpp2
-rw-r--r--engines/fullpipe/scenes/scene11.cpp40
2 files changed, 21 insertions, 21 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 3d515da725..246b10cbf8 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -2018,7 +2018,7 @@ void ReactParallel::createRegion() {
for (int i = 0; i < 4; i++)
_points[i] = new Common::Point;
- double at = atan2((double)(_x1 - _x2), (double)(_y1 - _y2)) + 1.570796;
+ double at = atan2((double)(_x1 - _x2), (double)(_y1 - _y2)) + 1.570796; // pi/2
double sn = sin(at);
double cs = cos(at);
diff --git a/engines/fullpipe/scenes/scene11.cpp b/engines/fullpipe/scenes/scene11.cpp
index 26fe10d4cc..84eca41ee4 100644
--- a/engines/fullpipe/scenes/scene11.cpp
+++ b/engines/fullpipe/scenes/scene11.cpp
@@ -52,20 +52,20 @@ void scene11_dudeSwingCallback(int *arg) {
g_vars->scene11_swingAngle = g_vars->scene11_swingSpeed * 0.0042 + g_vars->scene11_swingAngle;
if (g_vars->scene11_swingAngle < -1.5) {
- g_vars->scene11_swingAngle = 1.0004882812500000;
- g_vars->scene11_swingSpeed = 1.0;
- g_vars->scene11_swingAngleDiff = 1.0;
+ g_vars->scene11_swingAngle = -1.5; //1.0004882812500000;
+ g_vars->scene11_swingSpeed = 0.0;
+ g_vars->scene11_swingAngleDiff = 0.0;
}
if (g_vars->scene11_swingAngle > 1.5) {
- g_vars->scene11_swingAngle = 1.9990234375;
- g_vars->scene11_swingSpeed = 1.0;
- g_vars->scene11_swingAngleDiff = 1.0;
+ g_vars->scene11_swingAngle = 1.5; //1.9990234375;
+ g_vars->scene11_swingSpeed = 0.0;
+ g_vars->scene11_swingAngleDiff = 0.0;
}
if (g_vars->scene11_swingMaxAngle == *arg && 0.0 != g_vars->scene11_swingSpeed && fabs(g_vars->scene11_swingSpeed) < 2.5) {
- g_vars->scene11_swingSpeed = 1.0;
- g_vars->scene11_swingAngleDiff = 1.0;
+ g_vars->scene11_swingSpeed = 0.0;
+ g_vars->scene11_swingAngleDiff = 0.0;
g_vars->scene11_swingAngle = g_vars->scene11_swingOldAngle;
}
@@ -110,11 +110,11 @@ void scene11_initScene(Scene *sc) {
g_vars->scene11_hintCounter = 0;
g_vars->scene11_swingieScreenEdge = 0;
g_vars->scene11_crySound = 0;
- g_vars->scene11_swingAngle = 1.0;
- g_vars->scene11_swingOldAngle = 1.0;
- g_vars->scene11_swingSpeed = 1.0;
- g_vars->scene11_swingAngleDiff = 1.0;
- g_vars->scene11_swingInertia = 1.9849218750000000;
+ g_vars->scene11_swingAngle = 0.0;
+ g_vars->scene11_swingOldAngle = 0.0;
+ g_vars->scene11_swingSpeed = 0.0;
+ g_vars->scene11_swingAngleDiff = 0.0;
+ g_vars->scene11_swingInertia = 1.28; //1.9849218750000000;
g_vars->scene11_swingCounter = 0;
g_vars->scene11_swingCounterPrevTurn = 0;
g_vars->scene11_swingDirection = 0;
@@ -240,7 +240,7 @@ void sceneHandler11_manToSwing() {
g_fp->_aniMan2->hide();
g_vars->scene11_swingCounter = 0;
- g_vars->scene11_swingInertia = 1.9849218;
+ g_vars->scene11_swingInertia = 1.28; //1.9849218;
g_vars->scene11_dudeOnSwing->_flags &= 0xFFFB;
g_vars->scene11_dudeOnSwing = g_fp->_currentScene->getStaticANIObject1ById(ANI_MAN11, -1);
@@ -302,10 +302,10 @@ void sceneHandler11_jumpFromSwing() {
getCurrSceneSc2MotionController()->setEnabled();
getGameLoaderInteractionController()->enableFlag24();
- g_vars->scene11_swingOldAngle = 1.0;
- g_vars->scene11_swingAngleDiff = 1.0;
- g_vars->scene11_swingSpeed = 1.0;
- g_vars->scene11_swingAngle = 1.0;
+ g_vars->scene11_swingOldAngle = 0.0;
+ g_vars->scene11_swingAngleDiff = 0.0;
+ g_vars->scene11_swingSpeed = 0.0;
+ g_vars->scene11_swingAngle = 0.0;
g_vars->scene11_dudeOnSwing = g_fp->_currentScene->getStaticANIObject1ById(ANI_MAN11, -1);
g_vars->scene11_dudeOnSwing->_flags &= 0xFFFB;
@@ -342,7 +342,7 @@ void sceneHandler11_swing0() {
g_vars->scene11_swingDirection = 0;
g_vars->scene11_swingMaxAngle = 45;
- g_vars->scene11_swingOldAngle = 1.0;
+ g_vars->scene11_swingOldAngle = 0.0;
}
void sceneHandler11_swing1() {
@@ -381,7 +381,7 @@ void sceneHandler11_emptySwing() {
g_vars->scene11_dudeOnSwing->startAnim(MV_KCH_MOVE2, 0, -1);
g_vars->scene11_dudeOnSwing->_movement->setDynamicPhaseIndex(g_vars->scene11_dudeOnSwing->_movement->_currDynamicPhaseIndex);
- g_vars->scene11_swingInertia = 1.9881250;
+ g_vars->scene11_swingInertia = 0.03; //1.9881250;
}
void sceneHandler11_jumpHitAndWin() {