]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/all.qc
Set gun alignment on the server (hopefully more reliable)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / all.qc
index 6139d41b494274d9c2fbefd6f5f51eacc9194813..f4a4de7f3fbabc70514310848d551d5cfcab1a92 100644 (file)
@@ -527,7 +527,9 @@ void CL_WeaponEntity_SetModel(entity this, string name, bool _anim)
        {
                //int algn = STAT(GUNALIGN, this.owner);
                int algn = W_GunAlign(this, STAT(GUNALIGN, this.owner));
+       #ifdef SVQC
                this.m_gunalign = algn;
+       #endif
                vector v = this.movedir;
                this.movedir = shotorg_adjust(v, false, false, algn);
                this.view_ofs = shotorg_adjust(v, false, true, algn) - v;