mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 10:52:23 +00:00
Merge branch 'linedef-award-rings' into 'master'
New award rings linedef executor See merge request STJr/SRB2Internal!263
This commit is contained in:
commit
8f729c33d3
1 changed files with 12 additions and 0 deletions
12
src/p_spec.c
12
src/p_spec.c
|
@ -3918,6 +3918,18 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
}
|
||||
break;
|
||||
|
||||
case 460: // Award rings
|
||||
{
|
||||
INT16 rings = (sides[line->sidenum[0]].textureoffset>>FRACBITS);
|
||||
INT32 delay = (sides[line->sidenum[0]].rowoffset>>FRACBITS);
|
||||
if (mo && mo->player)
|
||||
{
|
||||
if (delay <= 0 || !(leveltime % delay))
|
||||
P_GivePlayerRings(mo->player, rings);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
#ifdef POLYOBJECTS
|
||||
case 480: // Polyobj_DoorSlide
|
||||
case 481: // Polyobj_DoorSwing
|
||||
|
|
Loading…
Reference in a new issue