]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Forget jumppad waypoint once destination waypoint is created
authorterencehill <piuntn@gmail.com>
Fri, 21 Jun 2019 16:25:10 +0000 (18:25 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 21 Jun 2019 16:25:10 +0000 (18:25 +0200)
qcsrc/server/bot/default/waypoints.qc

index d8f7e70a09346020c94eab16ed9d0b70a5e4d2c0..f3277b8f387433d9b4e371afce6188cb06d964de 100644 (file)
@@ -509,6 +509,10 @@ void waypoint_spawn_fromeditor(entity pl, bool at_crosshair)
                        start_wp_origin = org_save;
                }
        }
+       else if (start_wp_is_spawned)
+       {
+               waypoint_clear_start_wp(pl);
+       }
 }
 
 void waypoint_remove(entity wp)