From 4e8dbd0b86a6430e7939c6d9f2b10a5f6fd9abfe Mon Sep 17 00:00:00 2001 From: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com> Date: Wed, 24 Nov 2021 17:37:37 +0300 Subject: [PATCH] TKickout: fixed z reset with demo data. --- SpaceCadetPinball/TKickout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpaceCadetPinball/TKickout.cpp b/SpaceCadetPinball/TKickout.cpp index c4fcd6b..aa41833 100644 --- a/SpaceCadetPinball/TKickout.cpp +++ b/SpaceCadetPinball/TKickout.cpp @@ -45,7 +45,7 @@ TKickout::TKickout(TPinballTable* table, int groupIndex, bool someFlag): TCollis Circle.RadiusSq = visual.FloatArr[2] * visual.FloatArr[2]; auto zAttr = loader::query_float_attribute(groupIndex, 0, 408); - CollisionBallSetZ = pb::FullTiltMode ? zAttr[3] : zAttr[2]; + CollisionBallSetZ = pb::FullTiltMode && !pb::FullTiltDemoMode ? zAttr[3] : zAttr[2]; ThrowSpeedMult2 = visual.Kicker.ThrowBallMult * 0.01f; BallAcceleration = visual.Kicker.ThrowBallAcceleration; ThrowAngleMult = visual.Kicker.ThrowBallAngleMult;