]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix removal of the locked waypoint
authorterencehill <piuntn@gmail.com>
Fri, 9 Nov 2018 15:28:23 +0000 (16:28 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 9 Nov 2018 15:28:23 +0000 (16:28 +0100)
qcsrc/server/bot/default/waypoints.qc

index bd5d13e2ce91c035416197de55a642964ad0f265..84cca9fe2cd7716b540370a88f57ec4f67050971 100644 (file)
@@ -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;