From: Maik Merten Date: Sun, 6 Feb 2011 14:39:15 +0000 (+0100) Subject: be more specific on alternatives to controlled movement X-Git-Tag: xonotic-v0.5.0~311^2~37^2^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5a512a11fe4e42ee30966b84c250f54a8882076e;p=xonotic%2Fxonotic-data.pk3dir.git be more specific on alternatives to controlled movement --- diff --git a/qcsrc/server/g_subs.qc b/qcsrc/server/g_subs.qc index 6c4089c83..1785bd157 100644 --- a/qcsrc/server/g_subs.qc +++ b/qcsrc/server/g_subs.qc @@ -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;