]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_plats.qc
Improve the detection of the automatic "help me" notifier
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_plats.qc
index 087a048c30c84177de7cb17e97a74e32b3158ede..8d81ca263d60f04ff8df54a6535876d64e0e6e33 100644 (file)
@@ -57,9 +57,9 @@ void plat_spawn_inside_trigger()
                tmax_y = tmin_y + 1;
        }
 
-       if(tmin_x > tmax_x)
-               if(tmin_y > tmax_y)
-                       if(tmin_z > tmax_z)
+       if(tmin_x < tmax_x)
+               if(tmin_y < tmax_y)
+                       if(tmin_z < tmax_z)
                        {
                                setsize (trigger, tmin, tmax);
                                return;
@@ -2075,7 +2075,7 @@ void conveyor_think()
 
        if(self.state)
        {
-               for(e = findradius((self.absmin + self.absmax) * 0.5, vlen(self.absmax - self.absmin) * 0.5); e; e = e.chain)
+               for(e = findradius((self.absmin + self.absmax) * 0.5, vlen(self.absmax - self.absmin) * 0.5 + 1); e; e = e.chain)
                        if(!e.conveyor.state)
                                if(isPushable(e))
                                {