X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fwaypoints.qc;h=3bfb53264f19c241fbc562e21ba9ba6a09cfe463;hp=b39e59f762343fe4d15e2aa7ed5fc7519e41f82a;hb=cd80ac2655f4f65d960a650cf4d8a05de56720b0;hpb=0b736bc3155e202a593e5a6eeb22fb1734f51753 diff --git a/qcsrc/server/bot/waypoints.qc b/qcsrc/server/bot/waypoints.qc index b39e59f762..3bfb53264f 100644 --- a/qcsrc/server/bot/waypoints.qc +++ b/qcsrc/server/bot/waypoints.qc @@ -776,7 +776,10 @@ void waypoint_spawnforteleporter(entity e, vector destination, float timetaken) { local entity w; local entity dw; - w = waypoint_spawn(e.absmin, e.absmax, WAYPOINTFLAG_GENERATED | WAYPOINTFLAG_TELEPORT | WAYPOINTFLAG_NORELINK); + vector org; + org = (e.absmin + e.absmax) * 0.5; + org = waypoint_fixorigin(org); + w = waypoint_spawn(org, org, WAYPOINTFLAG_GENERATED | WAYPOINTFLAG_TELEPORT | WAYPOINTFLAG_NORELINK); dw = waypoint_spawn(destination, destination, WAYPOINTFLAG_GENERATED); // one way link to the destination w.wp00 = dw;