Merge branch 'linedef-award-rings' into 'master'

New award rings linedef executor

See merge request STJr/SRB2Internal!263
This commit is contained in:
toaster 2019-08-03 16:21:58 -04:00
commit 8f729c33d3
1 changed files with 12 additions and 0 deletions

View File

@ -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