From: Mario Date: Sat, 18 Mar 2017 06:43:58 +0000 (+1000) Subject: Minor cleanup X-Git-Tag: xonotic-v0.8.2~40 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=22442ab76f6b736cdb1536bac578d4c6340dfc89;p=xonotic%2Fxonotic-data.pk3dir.git Minor cleanup --- diff --git a/qcsrc/common/triggers/subs.qc b/qcsrc/common/triggers/subs.qc index 7b387da5e..18fab59d1 100644 --- a/qcsrc/common/triggers/subs.qc +++ b/qcsrc/common/triggers/subs.qc @@ -317,9 +317,6 @@ void SUB_CalcAngleMoveDone(entity this) // FIXME: I fixed this function only for rotation around the main axes void SUB_CalcAngleMove (entity this, vector destangle, float tspeedtype, float tspeed, void(entity this) func) { - vector delta; - float traveltime; - if (!tspeed) objerror (this, "No speed is defined!"); @@ -328,6 +325,7 @@ void SUB_CalcAngleMove (entity this, vector destangle, float tspeedtype, float t this.angles_y -= 360 * floor((this.angles_y - destangle_y) / 360 + 0.5); this.angles_z -= 360 * floor((this.angles_z - destangle_z) / 360 + 0.5); vector delta = destangle - this.angles; + float traveltime; switch(tspeedtype) {