mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-03 23:42:07 +00:00
Allow spectators through Block Players lines
This commit is contained in:
parent
843721cc8f
commit
6aa6521fb4
1 changed files with 2 additions and 2 deletions
|
|
@ -1941,7 +1941,7 @@ static boolean PIT_CheckLine(line_t *ld)
|
||||||
{
|
{
|
||||||
if (ld->flags & ML_IMPASSABLE) // block objects from moving through this linedef.
|
if (ld->flags & ML_IMPASSABLE) // block objects from moving through this linedef.
|
||||||
return false;
|
return false;
|
||||||
if (tmthing->player && ld->flags & ML_BLOCKPLAYERS)
|
if (tmthing->player && !tmthing->player->spectator && ld->flags & ML_BLOCKPLAYERS)
|
||||||
return false; // SRB2Kart: Only block players, not items
|
return false; // SRB2Kart: Only block players, not items
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3307,7 +3307,7 @@ static boolean PTR_SlideTraverse(intercept_t *in)
|
||||||
if (li->flags & ML_IMPASSABLE)
|
if (li->flags & ML_IMPASSABLE)
|
||||||
goto isblocking;
|
goto isblocking;
|
||||||
|
|
||||||
if (slidemo->player && li->flags & ML_BLOCKPLAYERS)
|
if (slidemo->player && !slidemo->player->spectator && li->flags & ML_BLOCKPLAYERS)
|
||||||
goto isblocking;
|
goto isblocking;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue