]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a bug in still rotation code, but that doesn't fix the issue of incorrect rotatio...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 15:30:42 +0000 (18:30 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 15:30:42 +0000 (18:30 +0300)
qcsrc/server/t_plats.qc

index 5fd9bad79d67f163bd4b6239fc6db75d8a0c4661..c84b2283688535eeb7f3f977e56f10cc07e52b21 100644 (file)
@@ -304,7 +304,7 @@ void train_wait()
                entity targ, cp;
                vector org;
                targ = find(world, targetname, self.target);
-               if(self.spawnflags & 1 && targ.curvetarget)
+               if((self.spawnflags & 1) && targ.curvetarget)
                        cp = find(world, targetname, targ.curvetarget);
                else
                        cp = world;
@@ -321,9 +321,7 @@ void train_wait()
                        return;
                }
                else // instant turning
-               {
-                       self.angles = vectoangles(org - self.origin);
-               }
+                       self.angles = vectoangles(org);
        }
 
        if(self.noise != "")