Merge branch 'checkpoint-lap-0' into 'master'

Can't interact with checkpoints during lap 0

See merge request kart-krew-dev/ring-racers-internal!2759
This commit is contained in:
Oni VelocitOni 2025-08-25 01:52:20 +00:00
commit 79c76c9639

View file

@ -584,7 +584,7 @@ void Obj_CheckpointThink(mobj_t* end)
void Obj_CrossCheckpoints(player_t* player, fixed_t old_x, fixed_t old_y) void Obj_CrossCheckpoints(player_t* player, fixed_t old_x, fixed_t old_y)
{ {
if (player->exiting) // can't cross checkpoints when exiting if (player->exiting || player->laps == 0) // can't cross checkpoints when exiting, or before the first lap starts
{ {
return; return;
} }