mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Linedef type 460: Don't award rings while SPB-locked
This commit is contained in:
parent
d71fdc9d0a
commit
cc0786d780
1 changed files with 4 additions and 0 deletions
|
|
@ -3620,6 +3620,10 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
INT32 delay = (sides[line->sidenum[0]].rowoffset>>FRACBITS);
|
INT32 delay = (sides[line->sidenum[0]].rowoffset>>FRACBITS);
|
||||||
if (mo && mo->player)
|
if (mo && mo->player)
|
||||||
{
|
{
|
||||||
|
// Don't award rings while SPB is targetting you
|
||||||
|
if (mo->player->pflags & PF_RINGLOCK)
|
||||||
|
return;
|
||||||
|
|
||||||
if (delay <= 0 || !(leveltime % delay))
|
if (delay <= 0 || !(leveltime % delay))
|
||||||
P_GivePlayerRings(mo->player, rings);
|
P_GivePlayerRings(mo->player, rings);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue