]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Little bit more cleanup
authorMario <mario@smbclan.net>
Wed, 14 Oct 2015 22:58:32 +0000 (08:58 +1000)
committerMario <mario@smbclan.net>
Wed, 14 Oct 2015 22:58:32 +0000 (08:58 +1000)
qcsrc/server/weapons/weaponsystem.qc
qcsrc/server/weapons/weaponsystem.qh

index 75a18e4f869db25e2a1658fe750143fae924a0ab..5957a75e0b1f9bb98868031abadd3e8197f3595c 100644 (file)
@@ -26,7 +26,7 @@ vector shotorg_adjustfromclient(vector vecs, float y_is_right, float algn)
        return vecs;
 }
 
-vector shotorg_adjust_values(vector vecs, float y_is_right, float visual, float algn)
+vector shotorg_adjust_values(vector vecs, bool y_is_right, bool visual, int algn)
 {
        string s;
 
@@ -53,9 +53,9 @@ vector shotorg_adjust_values(vector vecs, float y_is_right, float visual, float
        return vecs;
 }
 
-vector shotorg_adjust(vector vecs, float y_is_right, float visual)
-{SELFPARAM();
-       return shotorg_adjust_values(vecs, y_is_right, visual, self.owner.cvar_cl_gunalign);
+vector shotorg_adjust(vector vecs, bool y_is_right, bool visual, int algn)
+{
+       return shotorg_adjust_values(vecs, y_is_right, visual, algn);
 }
 
 .int state;
@@ -289,8 +289,8 @@ void CL_WeaponEntity_SetModel(string name)
        {
                vector v0;
                v0 = self.movedir;
-               self.movedir = shotorg_adjust(v0, false, false);
-               self.view_ofs = shotorg_adjust(v0, false, true) - v0;
+               self.movedir = shotorg_adjust(v0, false, false, self.owner.cvar_cl_gunalign);
+               self.view_ofs = shotorg_adjust(v0, false, true, self.owner.cvar_cl_gunalign) - v0;
        }
        self.owner.stat_shotorg = compressShotOrigin(self.movedir);
        self.movedir = decompressShotOrigin(self.owner.stat_shotorg); // make them match perfectly
index be64958c304a0daf736f23f24dfdf7f20bc0e277..86d31119568c33f7518bfbb7cc01c176f1acc8a5 100644 (file)
@@ -14,9 +14,9 @@ const float WFRAME_FIRE2 = 1;
 const float WFRAME_IDLE = 2;
 const float WFRAME_RELOAD = 3;
 
-vector shotorg_adjust(vector vecs, float y_is_right, float visual);
+vector shotorg_adjust(vector vecs, bool y_is_right, bool visual, int algn);
 
-vector shotorg_adjust_values(vector vecs, float y_is_right, float visual, float algn);
+vector shotorg_adjust_values(vector vecs, bool y_is_right, bool visual, int algn);
 
 void CL_SpawnWeaponentity(entity e);