]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/waypoints.qc
Remove remove()
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / waypoints.qc
index 586f2a8c04758b8e5d9c5c3c6501c1996cf40f1f..89078f5c88d885a277eba061d617005cfb1f79ba 100644 (file)
@@ -43,7 +43,7 @@ entity waypoint_spawn(vector m1, vector m2, float f)
                        if(!(f & WAYPOINTFLAG_GENERATED))
                        {
                                LOG_TRACE("Killed a waypoint that was stuck in solid at ", vtos(w.origin), "\n");
-                               remove(w);
+                               delete(w);
                                return NULL;
                        }
                        else
@@ -338,7 +338,7 @@ void waypoint_remove(entity e)
        waypoint_schedulerelink(e.wp30);
        waypoint_schedulerelink(e.wp31);
        // and now remove the spawnfunc_waypoint
-       remove(e);
+       delete(e);
 }
 
 // empties the map of waypoints
@@ -346,7 +346,7 @@ void waypoint_removeall()
 {
        IL_EACH(g_waypoints, true,
        {
-               remove(it);
+               delete(it);
        });
 }