From 7ee508118c124b2ac889eadc0e1b81ecc3e9830f Mon Sep 17 00:00:00 2001 From: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com> Date: Wed, 6 Oct 2021 12:42:22 +0300 Subject: [PATCH] Fixed TKickout temporary Z in FT mode. --- SpaceCadetPinball/TKickout.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SpaceCadetPinball/TKickout.cpp b/SpaceCadetPinball/TKickout.cpp index 0cce616..c4fcd6b 100644 --- a/SpaceCadetPinball/TKickout.cpp +++ b/SpaceCadetPinball/TKickout.cpp @@ -4,6 +4,7 @@ #include "control.h" #include "loader.h" +#include "pb.h" #include "TBall.h" #include "TCircle.h" #include "timer.h" @@ -43,7 +44,8 @@ TKickout::TKickout(TPinballTable* table, int groupIndex, bool someFlag): TCollis } Circle.RadiusSq = visual.FloatArr[2] * visual.FloatArr[2]; - CollisionBallSetZ = loader::query_float_attribute(groupIndex, 0, 408)[2]; + auto zAttr = loader::query_float_attribute(groupIndex, 0, 408); + CollisionBallSetZ = pb::FullTiltMode ? zAttr[3] : zAttr[2]; ThrowSpeedMult2 = visual.Kicker.ThrowBallMult * 0.01f; BallAcceleration = visual.Kicker.ThrowBallAcceleration; ThrowAngleMult = visual.Kicker.ThrowBallAngleMult;