From 28001a1209e72ee1e4a14c2d315610ccf12d837b Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Tue, 28 Mar 2023 21:52:42 -0400 Subject: [PATCH] SERVER/FTE: Fix Load_Waypoints_Legacy not applying targetnames --- source/server/ai/fte/waypoints_core.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/server/ai/fte/waypoints_core.qc b/source/server/ai/fte/waypoints_core.qc index 29c9c9d..5817fa1 100644 --- a/source/server/ai/fte/waypoints_core.qc +++ b/source/server/ai/fte/waypoints_core.qc @@ -724,12 +724,13 @@ void() Load_Waypoints_Legacy new_way.targets[5] = trg6; new_way.targets[6] = trg7; new_way.targets[7] = trg8; + new_way.targetname = special; setorigin(new_way, where); - if (!special) { - setmodel(new_way, "models/way/normal_way.spr"); - } else { + if (special != "" && special != " ") { setmodel(new_way, "models/way/normal_way_door.spr"); + } else { + setmodel(new_way, "models/way/normal_way.spr"); } }