From d11edbe5f670c57c5dd05abda58408662a8da3ea Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 13 Oct 2018 16:02:10 +0200 Subject: [PATCH] Bot waypoints: fix removal of the 32th link of a waypoint --- qcsrc/server/bot/default/waypoints.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index 6991ff00f..a8d953450 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -390,7 +390,7 @@ void waypoint_removelink(entity from, entity to) if (!found && from.wp28 == to) found = true; if (found) {from.wp28 = from.wp29; from.wp28mincost = from.wp29mincost;} if (!found && from.wp29 == to) found = true; if (found) {from.wp29 = from.wp30; from.wp29mincost = from.wp30mincost;} if (!found && from.wp30 == to) found = true; if (found) {from.wp30 = from.wp31; from.wp30mincost = from.wp31mincost;} - if (found) {from.wp31 = NULL; from.wp31mincost = 10000000;} + if (!found && from.wp31 == to) found = true; if (found) {from.wp31 = NULL; from.wp31mincost = 10000000;} } bool waypoint_islinked(entity from, entity to) -- 2.39.2