Accidentally removed a bit of code I shouldn't have removed

This commit is contained in:
Latapostrophe 2019-10-24 21:00:58 +02:00
parent ae72a365f3
commit 08ae2c926e

View file

@ -8771,6 +8771,13 @@ void A_SPBChase(mobj_t *actor)
bestwaypoint, player->nextwaypoint, useshortcuts, huntbackwards);
}
if (nextwaypoint == NULL && lastwaypoint != NULL)
{
// Restore to the last nextwaypoint
nextwaypoint = lastwaypoint;
}
if (nextwaypoint != NULL)
{
const fixed_t xywaypointdist = P_AproxDistance(