1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-09-01 06:20:15 +02:00

FT collision part3: cleanup.

This commit is contained in:
Muzychenko Andrey 2023-03-05 14:16:07 +03:00
parent ba470e8727
commit 4b86fe2aa7
16 changed files with 144 additions and 202 deletions

View file

@ -611,7 +611,7 @@ TBall* TPinballTable::AddBall(float x, float y)
if (ball != nullptr)
{
ball->ActiveFlag = 1;
ball->Position.Z = ball->Offset;
ball->Position.Z = ball->Radius;
ball->Direction = {};
ball->Speed = 0;
ball->TimeDelta = 0;
@ -632,8 +632,8 @@ TBall* TPinballTable::AddBall(float x, float y)
ball->Position.X = x;
ball->Position.Y = y;
ball->PrevPosition = ball->Position;
ball->SomeCounter1 = 0;
ball->time_ticks1 = ball->time_ticks2 = pb::time_ticks;
ball->StuckCounter = 0;
ball->LastActiveTime = pb::time_ticks;
return ball;
}