]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Greatly improve linking to teleports and jumppads by expanding their waypoints to...
authorterencehill <piuntn@gmail.com>
Thu, 8 Jun 2017 15:45:14 +0000 (17:45 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 8 Jun 2017 15:45:14 +0000 (17:45 +0200)
qcsrc/server/bot/default/waypoints.qc

index 11d4c75deb61d22a9b1b8ddf4a3a58ad1e38d97f..f5391dbea4e5223cb67deaa4a31e848500d76730 100644 (file)
@@ -1109,7 +1109,7 @@ void waypoint_spawnforteleporter_v(entity e, vector org, vector destination, flo
 void waypoint_spawnforteleporter(entity e, vector destination, float timetaken)
 {
        destination = waypoint_fixorigin(destination);
-       waypoint_spawnforteleporter_boxes(e, WAYPOINTFLAG_TELEPORT, e.absmin, e.absmax, destination, destination, timetaken);
+       waypoint_spawnforteleporter_boxes(e, WAYPOINTFLAG_TELEPORT, e.absmin - PL_MAX_CONST + '1 1 1', e.absmax - PL_MIN_CONST + '-1 -1 -1', destination, destination, timetaken);
 }
 
 entity waypoint_spawnpersonal(entity this, vector position)