mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-01 06:20:15 +02:00
TRamp, TPinballTable ready.
This commit is contained in:
parent
f22077d8c8
commit
5252fb1b7e
10 changed files with 263 additions and 39 deletions
|
@ -635,25 +635,14 @@ void TPinballTable::replay_timer_callback(int timerId, void* caller)
|
|||
void TPinballTable::tilt_timeout(int timerId, void* caller)
|
||||
{
|
||||
auto table = static_cast<TPinballTable*>(caller);
|
||||
vector_type vec{};
|
||||
|
||||
table->TiltTimeoutTimer = 0;
|
||||
if (table->TiltLockFlag)
|
||||
{
|
||||
/*v2 = table->ListP2.ListPtr;
|
||||
v3 = v2->Array;
|
||||
if (v2->Count > 0)
|
||||
for (int i = 0; i < table->BallList->Count(); i++)
|
||||
{
|
||||
v4 = v2->Count;
|
||||
do
|
||||
{
|
||||
(*(void(__stdcall**)(void*, char*, char*, _DWORD, _DWORD))(*(_DWORD*)table->Drain + 20))(
|
||||
*v3,
|
||||
&v5,
|
||||
&v5,
|
||||
0.0,
|
||||
0);
|
||||
++v3;
|
||||
--v4;
|
||||
} while (v4);
|
||||
}*/
|
||||
table->Drain->Collision(static_cast<TBall*>(table->BallList->Get(i)), &vec, &vec, 0.0, nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue