]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix second model sticking after death
authorMario <mario@smbclan.net>
Fri, 30 Sep 2016 20:49:56 +0000 (06:49 +1000)
committerMario <mario@smbclan.net>
Fri, 30 Sep 2016 20:49:56 +0000 (06:49 +1000)
qcsrc/common/weapons/all.qc

index d2acab1a040752da72e5237ce14c11b0aea77645..6139d41b494274d9c2fbefd6f5f51eacc9194813 100644 (file)
@@ -391,7 +391,9 @@ void CL_WeaponEntity_SetModel(entity this, string name, bool _anim)
 {
        if (name == "")
        {
-               this.model = "";
+               vector oldmin = this.mins, oldmax = this.maxs;
+               setmodel(this, MDL_Null);
+               setsize(this, oldmin, oldmax);
                if (this.weaponchild) delete(this.weaponchild);
                this.weaponchild = NULL;
                this.movedir = '0 0 0';