mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
fix an inconsistency I introduced between counting the waypoints and finding them again
This commit is contained in:
parent
ee0c4b42a6
commit
ea951eef78
1 changed files with 6 additions and 3 deletions
|
@ -12042,11 +12042,14 @@ void A_Boss5FindWaypoint(mobj_t *actor)
|
|||
{
|
||||
if (avoidcenter)
|
||||
continue;
|
||||
waypoints[numwaypoints++] = mapthings[i].mobj;
|
||||
}
|
||||
else if (mapthings[i].mobj->reactiontime > 0)
|
||||
{
|
||||
mapthings[i].mobj->reactiontime--;
|
||||
else if (P_CheckSight(actor, mapthings[i].mobj))
|
||||
continue;
|
||||
}
|
||||
if (!P_CheckSight(actor, mapthings[i].mobj))
|
||||
continue;
|
||||
waypoints[numwaypoints++] = mapthings[i].mobj;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue