]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
new conveyor code: don't push each other
authorRudolf Polzer <divverent@alientrap.org>
Thu, 29 Dec 2011 22:13:22 +0000 (23:13 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 29 Dec 2011 22:13:22 +0000 (23:13 +0100)
qcsrc/server/t_plats.qc

index 6b85d209c2edab8efea30a28d17b60bc809a9b41..32975c146bdb53bf21abd8e07d47fd138e9cafba 100644 (file)
@@ -2068,13 +2068,14 @@ void conveyor_think()
        {
                for(e = findradius((self.absmin + self.absmax) * 0.5, vlen(self.absmax - self.absmin) * 0.5); e; e = e.chain)
                        if(!e.conveyor.state)
-                       {
-                               vector emin = e.absmin - '1 1 1';
-                               vector emax = e.absmax + '1 1 1';
-                               if(boxesoverlap(emin, emax, self.absmin, self.absmax)) // quick
-                                       if(WarpZoneLib_BoxTouchesBrush(emin, emax, self, e)) // accurate
-                                               e.conveyor = self;
-                       }
+                               if(e.movetype != MOVETYPE_NONE)
+                               {
+                                       vector emin = e.absmin - '1 1 1';
+                                       vector emax = e.absmax + '1 1 1';
+                                       if(boxesoverlap(emin, emax, self.absmin, self.absmax)) // quick
+                                               if(WarpZoneLib_BoxTouchesBrush(emin, emax, self, e)) // accurate
+                                                       e.conveyor = self;
+                               }
 
                for(e = world; (e = findentity(e, conveyor, self)); )
                {