mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-04 14:12:41 +00:00
Disallow interacting with checkpoints after you finish
This commit is contained in:
parent
4b88ea04fd
commit
10a694cc0b
1 changed files with 5 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue