From bfd84b1099458783b5d1944f1056a9f0d4e67cb8 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Tue, 19 Dec 2023 11:27:12 -0500 Subject: [PATCH] Fix logic bug with bot shortcut waypoints --- src/k_kart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index c8d9fabd5..54f064be2 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -9233,8 +9233,8 @@ static waypoint_t *K_GetPlayerNextWaypoint(player_t *player) // Bots that aren't able to take a shortcut will ignore shortcut waypoints. // (However, if they're already on a shortcut, then we want them to keep going.) - if (player->nextwaypoint == NULL - || K_GetWaypointIsShortcut(player->nextwaypoint) == false) + if (player->nextwaypoint != NULL + && K_GetWaypointIsShortcut(player->nextwaypoint) == false) { continue; }