]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/devastator.qc
cleanup and a few comments
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / devastator.qc
index 6f428dc6c413430cb52440659da1c3a5eac6e6b5..ef08d30b8e93a2ae424418e56bc477f88efa36dc 100644 (file)
@@ -237,9 +237,7 @@ void W_Devastator_Think(entity this)
                                f = 1;
 
                        vector md = this.realowner.(weaponentity).movedir;
-                       vector vecs = ((md.x > 0) ? md : '0 0 0');
-
-                       vector dv = v_right * -vecs.y + v_up * vecs.z;
+                       vector dv = v_right * -md.y + v_up * md.z;
 
                        if(!W_DualWielding(this.realowner))
                                dv = '0 0 0'; // don't override!