1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-17 15:20:17 +01:00

Full Tilt hack - ball doesn't delay at ramp hole (#63)

This commit is contained in:
Desgging 2021-10-23 12:31:25 +08:00 committed by GitHub
parent 0076f8947c
commit 8e07b7fc3f
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,15 @@ void THole::Collision(TBall* ball, vector_type* nextPosition, vector_type* direc
ball->Position.X = Circle.Center.X;
ball->Position.Y = Circle.Center.Y;
ball->Acceleration.Z = 0.0;
Timer = timer::set(0.5f, this, TimerExpired);
/*Full Tilt hack - ball doesn't delay at the ramp hole*/
if (pb::FullTiltMode)
{
BallCapturedSecondStage = 1;
}
else
{
Timer = timer::set(0.5f, this, TimerExpired);
}
if (!PinballTable->TiltLockFlag)
{
loader::play_sound(HardHitSoundId);