]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Always use SUB_CalcAngleMove, even when instant turning
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 25 May 2012 13:02:10 +0000 (16:02 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 25 May 2012 13:02:10 +0000 (16:02 +0300)
qcsrc/server/t_plats.qc

index 86e1585d1065ea1cc41a462097d0d79e42893259..0c1bcdffb33a98a7d35627ed39cc39a7cc24eadc 100644 (file)
@@ -316,14 +316,12 @@ void train_wait()
                ang = vectoangles(ang);
                ang_x = -ang_x; // flip up / down orientation
 
-               if(self.wait >= 0) // slow turning
-               {
+               if(self.wait > 0) // slow turning
                        SUB_CalcAngleMove(ang, TSPEED_TIME, self.ltime - time + self.wait, train_wait);
-                       self.train_wait_turning = TRUE;
-                       return;
-               }
                else // instant turning
-                       self.angles = ang;
+                       SUB_CalcAngleMove(ang, TSPEED_TIME, 0.0000001, train_wait);
+               self.train_wait_turning = TRUE;
+               return;
        }
 
        if(self.noise != "")