mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-01 06:20:15 +02:00
FT collision part5: cleanup.
This commit is contained in:
parent
c5acdcd524
commit
e0424bed65
11 changed files with 62 additions and 88 deletions
|
@ -59,7 +59,7 @@ TPinballTable::TPinballTable(): TPinballComponent(nullptr, -1, false)
|
|||
MultiballFlag = false;
|
||||
PlayerCount = 0;
|
||||
|
||||
auto ball = AddBall(0.0f, 0.0f);
|
||||
auto ball = AddBall({0.0f, 0.0f});
|
||||
ball->Disable();
|
||||
|
||||
new TTableLayer(this);
|
||||
|
@ -595,7 +595,7 @@ int TPinballTable::Message(MessageCode code, float value)
|
|||
return 0;
|
||||
}
|
||||
|
||||
TBall* TPinballTable::AddBall(float x, float y)
|
||||
TBall* TPinballTable::AddBall(vector2 position)
|
||||
{
|
||||
TBall* ball = nullptr;
|
||||
|
||||
|
@ -629,8 +629,8 @@ TBall* TPinballTable::AddBall(float x, float y)
|
|||
BallList.push_back(ball);
|
||||
}
|
||||
|
||||
ball->Position.X = x;
|
||||
ball->Position.Y = y;
|
||||
ball->Position.X = position.X;
|
||||
ball->Position.Y = position.Y;
|
||||
ball->PrevPosition = ball->Position;
|
||||
ball->StuckCounter = 0;
|
||||
ball->LastActiveTime = pb::time_ticks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue