]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Rename bezier_turn to platmovetype_turn, because still rotation can now be used witho...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 15:15:10 +0000 (18:15 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 15:15:10 +0000 (18:15 +0300)
qcsrc/server/g_subs.qc
qcsrc/server/t_plats.qc

index 9454f14f49263ab45cd10acabb49a41e3103ba1c..31bbeb6bcbf9a01e77f1ce3c6a2e15c3656ccb21 100644 (file)
@@ -170,7 +170,7 @@ void SUB_CalcMoveDone (void)
                self.think1 ();
 }
 
-.float bezier_turn;
+.float platmovetype_turn;
 void SUB_CalcMove_controller_think (void)
 {
        entity oldself;
@@ -223,7 +223,7 @@ void SUB_CalcMove_controller_think (void)
                        veloc = veloc * (1 / sys_frametime); // so it arrives for the next frame
                }
                self.owner.velocity = veloc;
-               if(self.owner.bezier_turn)
+               if(self.owner.platmovetype_turn)
                {
                        vector vel;
                        vel = delta + 2 * delta2 * phasepos;
index e652defa6b1d0de19608a25c39b1b7b6cbc33eb8..33fbcd549a1033f907407185497bf7b1de86b97c 100644 (file)
@@ -299,7 +299,7 @@ void train_wait()
        self.enemy = world;
 
        // if turning is enabled, the train will turn toward the next point while waiting
-       if(self.bezier_turn && !self.train_wait_turning)
+       if(self.platmovetype_turn && !self.train_wait_turning)
        {
                entity targ, cp;
                vector org;
@@ -423,7 +423,7 @@ void spawnfunc_func_train()
        if (!self.speed)
                self.speed = 100;
        if (self.spawnflags & 2)
-               self.bezier_turn = TRUE;
+               self.platmovetype_turn = TRUE;
 
        if not(InitMovingBrushTrigger())
                return;