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
No known key found for this signature in database
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);