Disallow interacting with checkpoints after you finish

This commit is contained in:
Ashnal 2025-05-25 18:13:49 -04:00
parent 4b88ea04fd
commit 10a694cc0b

View file

@ -584,6 +584,11 @@ void Obj_CheckpointThink(mobj_t* end)
void Obj_CrossCheckpoints(player_t* player, fixed_t old_x, fixed_t old_y)
{
if (player->exiting) // can't cross checkpoints when exiting
{
return;
}
LineOnDemand ray(old_x, old_y, player->mo->x, player->mo->y, player->mo->radius);
auto it = std::find_if(