mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-16 01:31:30 +00:00
Make LE Ring triggers accept spheres for NiGHTS levels
This commit is contained in:
parent
f19b7bfacf
commit
1cb68a615e
1 changed files with 3 additions and 3 deletions
|
@ -1493,10 +1493,10 @@ boolean P_RunTriggerLinedef(line_t *triggerline, mobj_t *actor, sector_t *caller
|
||||||
if (!playeringame[i] || players[i].spectator)
|
if (!playeringame[i] || players[i].spectator)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!players[i].mo || players[i].rings <= 0)
|
if (!players[i].mo || ((maptol & TOL_NIGHTS) ? players[i].spheres : players[i].rings) <= 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
rings += players[i].rings;
|
rings += (maptol & TOL_NIGHTS) ? players[i].spheres : players[i].rings;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1504,7 +1504,7 @@ boolean P_RunTriggerLinedef(line_t *triggerline, mobj_t *actor, sector_t *caller
|
||||||
if (!(actor && actor->player))
|
if (!(actor && actor->player))
|
||||||
return false; // no player to count rings from here, sorry
|
return false; // no player to count rings from here, sorry
|
||||||
|
|
||||||
rings = actor->player->rings;
|
rings = (maptol & TOL_NIGHTS) ? actor->player->spheres : actor->player->rings;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (triggerline->flags & ML_NOCLIMB)
|
if (triggerline->flags & ML_NOCLIMB)
|
||||||
|
|
Loading…
Reference in a new issue