mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-11 03:42:43 +00:00
Slight fixes for NiGHTS LE Trigger logic
This commit is contained in:
parent
2c72c6e660
commit
53503cd01f
1 changed files with 5 additions and 2 deletions
|
@ -1549,6 +1549,10 @@ static boolean P_CheckNightsTriggerLine(line_t *triggerline, mobj_t *actor)
|
|||
if (donomares && P_FindLowestMare() != UINT8_MAX)
|
||||
return false;
|
||||
|
||||
// run only if there is a mare present
|
||||
if (!donomares && P_FindLowestMare() == UINT8_MAX)
|
||||
return false;
|
||||
|
||||
// run only if player is nightserizing from non-nights
|
||||
if (fromnonights)
|
||||
{
|
||||
|
@ -1601,9 +1605,8 @@ static boolean P_CheckNightsTriggerLine(line_t *triggerline, mobj_t *actor)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// get current mare/lap from triggering player
|
||||
if (!perglobal && !perglobalinverse)
|
||||
else if (!perglobal && !perglobalinverse)
|
||||
{
|
||||
if (!actor->player)
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue