mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-26 16:36:05 +00:00
Fix checkpoint animation in Tutorial
This commit is contained in:
parent
4a8723bba4
commit
913b733718
1 changed files with 8 additions and 8 deletions
|
|
@ -664,14 +664,6 @@ void Obj_CrossCheckpoints(player_t* player, fixed_t old_x, fixed_t old_y)
|
|||
return;
|
||||
}
|
||||
|
||||
if (player->position <= 1)
|
||||
{
|
||||
angle_t direction = R_PointToAngle2(old_x, old_y, player->mo->x, player->mo->y);
|
||||
fixed_t speed_multiplier = FixedDiv(player->speed, K_GetKartSpeed(player, false, false));
|
||||
chk->twirl(direction, speed_multiplier);
|
||||
chk->other()->twirl(direction, speed_multiplier);
|
||||
}
|
||||
|
||||
if (gametyperules & GTR_CHECKPOINTS)
|
||||
{
|
||||
for (Checkpoint* chk : g_checkpoints)
|
||||
|
|
@ -684,6 +676,14 @@ void Obj_CrossCheckpoints(player_t* player, fixed_t old_x, fixed_t old_y)
|
|||
}
|
||||
}
|
||||
|
||||
if (player->position <= 1)
|
||||
{
|
||||
angle_t direction = R_PointToAngle2(old_x, old_y, player->mo->x, player->mo->y);
|
||||
fixed_t speed_multiplier = FixedDiv(player->speed, K_GetKartSpeed(player, false, false));
|
||||
chk->twirl(direction, speed_multiplier);
|
||||
chk->other()->twirl(direction, speed_multiplier);
|
||||
}
|
||||
|
||||
S_StartSound(player->mo, sfx_s3k63);
|
||||
|
||||
player->checkpointId = chk->id();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue