mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'let-spec-have-fun' into 'master'
Allow spectators through Block Players lines See merge request KartKrew/Kart!266
This commit is contained in:
commit
5d923226aa
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