]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_plats.qc
do it right
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_plats.qc
index 9c9eb42ba4a77024f966c6ebaa7b01ba659f896d..e3f2ee769ee56d7d61df75ee9ade2f8e9ba7412a 100644 (file)
@@ -2070,10 +2070,12 @@ void conveyor_think()
                        if(!e.conveyor.state)
                                if(e.movetype != MOVETYPE_NONE)
                                {
+                                       vector emin = e.absmin;
+                                       vector emax = e.absmax;
                                        if(self.solid == SOLID_BSP)
                                        {
-                                               vector emin = e.absmin - '1 1 1';
-                                               vector emax = e.absmax + '1 1 1';
+                                               emin -= '1 1 1';
+                                               emax += '1 1 1';
                                        }
                                        if(boxesoverlap(emin, emax, self.absmin, self.absmax)) // quick
                                                if(WarpZoneLib_BoxTouchesBrush(emin, emax, self, e)) // accurate