]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/warpzonelib/client.qc
warpzones: optimize tracing if no warpzones exist (less extra work)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / warpzonelib / client.qc
index 1dbe824d6629929a90d053e2d9e8b71abea64160..d084e08084ce854d08b723911a97b63185610937 100644 (file)
@@ -1,5 +1,6 @@
 void WarpZone_Read(float isnew)
 {
+       ++warpzone_warpzones_exist;
        if not(self.enemy)
        {
                self.enemy = spawn();
@@ -46,6 +47,7 @@ void WarpZone_Read(float isnew)
 
 void WarpZone_Camera_Read(float isnew)
 {
+       ++warpzone_cameras_exist;
        self.classname = "func_warpzone_camera";
        self.origin_x = ReadCoord();
        self.origin_y = ReadCoord();