]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
be more specific on alternatives to controlled movement
authorMaik Merten <maikmerten@googlemail.com>
Sun, 6 Feb 2011 14:39:15 +0000 (15:39 +0100)
committerMaik Merten <maikmerten@googlemail.com>
Sun, 6 Feb 2011 14:39:15 +0000 (15:39 +0100)
qcsrc/server/g_subs.qc

index 6c4089c83bf645776098a9b06820f548b409d70a..1785bd1577d72e396b5eca9d0a21b1bd07db6ea8 100644 (file)
@@ -250,9 +250,8 @@ void SUB_CalcMove (vector tdest, float tspeed, void() func)
        // Very short animations don't really show off the effect
        // of controlled animation, so let's just use linear movement.
        // Alternatively entities can choose to specify non-controlled movement.
-       // The default, controlled movement, is value 0, the only currently
-       // implemented alternative movement is linear, which is any other value.
-       if (traveltime < 0.15 || self.platmovetype)
+        // The only currently implemented alternative movement is linear (value 1)
+       if (traveltime < 0.15 || self.platmovetype == 1)
        {
                self.velocity = delta * (1/traveltime); // QuakeC doesn't allow vector/float division
                self.nextthink = self.ltime + traveltime;