]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Set view_ofs after initializing the brush, so mins is the correct value
authorMario <mario.mario@y7mail.com>
Thu, 28 Nov 2013 00:57:37 +0000 (11:57 +1100)
committerMario <mario.mario@y7mail.com>
Thu, 28 Nov 2013 00:57:37 +0000 (11:57 +1100)
qcsrc/server/t_plats.qc

index 3955442310817b537994f80d19d872ac6d65be3e..beccc7179450e7d951713e9c3b94931178e105da 100644 (file)
@@ -414,6 +414,10 @@ void spawnfunc_func_train()
        if (!self.speed)
                self.speed = 100;
 
+       if (!InitMovingBrushTrigger())
+               return;
+       self.effects |= EF_LOWPRECISION;
+       
        if (self.spawnflags & 2)
        {
                self.platmovetype_turn = TRUE;
@@ -422,10 +426,6 @@ void spawnfunc_func_train()
        else
                self.view_ofs = self.mins;
 
-       if (!InitMovingBrushTrigger())
-               return;
-       self.effects |= EF_LOWPRECISION;
-
        // wait for targets to spawn
        InitializeEntity(self, func_train_find, INITPRIO_SETLOCATION);