From f4dddf0385b0895ab7c3dd326193afb93d00c403 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Wed, 21 Sep 2022 11:59:59 -0400 Subject: [PATCH] Properly run ahead in fuse state --- src/objects/spb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/objects/spb.c b/src/objects/spb.c index 49db1841c..b99f7c371 100644 --- a/src/objects/spb.c +++ b/src/objects/spb.c @@ -406,16 +406,17 @@ static void SPBSeek(mobj_t *spb, player_t *bestPlayer) { if (pathtoplayer.numnodes > 1) { + // Go to next. curWaypoint = (waypoint_t *)pathtoplayer.array[1].nodedata; } -#if 0 else if (spb->fuse > 0 && destWaypoint->numnextwaypoints > 0) { + // Run ahead. curWaypoint = destWaypoint->nextwaypoints[0]; } -#endif else { + // Sort of wait at the player's dest waypoint. curWaypoint = destWaypoint; }