From: terencehill Date: Fri, 9 Nov 2018 15:28:23 +0000 (+0100) Subject: Fix removal of the locked waypoint X-Git-Tag: xonotic-v0.8.5~1704^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7d13257ab8cd25177ae7e2991f4e6fae6869d92a;p=xonotic%2Fxonotic-data.pk3dir.git Fix removal of the locked waypoint --- diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index bd5d13e2c..84cca9fe2 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -1530,6 +1530,10 @@ void botframe_showwaypointlinks() FOREACH_CLIENT(IS_PLAYER(it) && !it.isbot, { int display_type = 0; + if (wasfreed(it.wp_aimed)) + it.wp_aimed = NULL; + if (wasfreed(it.wp_locked)) + it.wp_locked = NULL; if (PHYS_INPUT_BUTTON_USE(it)) it.wp_locked = it.wp_aimed; entity head = it.wp_locked;