From: terencehill <piuntn@gmail.com>
Date: Mon, 7 Aug 2017 11:32:42 +0000 (+0200)
Subject: Apply color associated to hardwired waypoints on waypoints load
X-Git-Tag: xonotic-v0.8.5~2378^2~92
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3d4321f75c653ecbed14a37a513c09cba923bcd5;p=xonotic%2Fxonotic-data.pk3dir.git

Apply color associated to hardwired waypoints on waypoints load
---

diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc
index 824aab23f..7c9711a38 100644
--- a/qcsrc/server/bot/default/waypoints.qc
+++ b/qcsrc/server/bot/default/waypoints.qc
@@ -854,6 +854,8 @@ void waypoint_load_or_remove_links_hardwired(bool removal_mode)
 		waypoint_addlink(wp_from, wp_to);
 		wp_from.wphardwired = true;
 		wp_to.wphardwired = true;
+		waypoint_setupmodel(wp_from);
+		waypoint_setupmodel(wp_to);
 	}
 
 	fclose(file);