mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Award Player Rings uses args for overload
This commit is contained in:
parent
a8ac5a9922
commit
032ffafd39
2 changed files with 3 additions and 3 deletions
|
|
@ -5356,6 +5356,7 @@ static void P_ConvertBinaryLinedefTypes(void)
|
|||
case 460: //Award rings
|
||||
lines[i].args[0] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS;
|
||||
lines[i].args[1] = sides[lines[i].sidenum[0]].rowoffset >> FRACBITS;
|
||||
lines[i].args[2] = !!(lines[i].flags & ML_NOCLIMB);
|
||||
break;
|
||||
case 461: //Spawn object
|
||||
lines[i].args[0] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS;
|
||||
|
|
|
|||
|
|
@ -3475,9 +3475,8 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
|
||||
if (delay <= 0 || !(leveltime % delay))
|
||||
{
|
||||
// No Climb: don't cap rings to 20
|
||||
K_AwardPlayerRings(mo->player, rings,
|
||||
(line->flags & ML_NOCLIMB) == ML_NOCLIMB);
|
||||
// args[2]: don't cap rings to 20
|
||||
K_AwardPlayerRings(mo->player, rings, line->args[2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue