]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
do it right
authorRudolf Polzer <divverent@xonotic.org>
Fri, 30 Dec 2011 11:15:51 +0000 (12:15 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 30 Dec 2011 11:15:51 +0000 (12:15 +0100)
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