]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
observers: fix size
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 13 Mar 2016 05:13:43 +0000 (16:13 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 13 Mar 2016 05:13:43 +0000 (16:13 +1100)
qcsrc/server/cl_client.qc

index 026277dd67b7bf65f9f9a755be14daf6e2fd1a5d..6d5a4641a77e5dfec786c35c6cc12b75c1ef597b 100644 (file)
@@ -190,6 +190,7 @@ void PutObserverInServer()
         }
         // give the spectator some space between walls for MOVETYPE_FLY_WORLDONLY
         // so that your view doesn't go into the ceiling with MOVETYPE_FLY_WORLDONLY, previously "PL_VIEW_OFS"
+        setmodel(this, MDL_Null);
         setsize(this, STAT(PL_CROUCH_MIN, NULL), STAT(PL_CROUCH_MAX, NULL));
         this.view_ofs = '0 0 0';
     }
@@ -274,9 +275,6 @@ void PutObserverInServer()
 
        this.items = 0;
        this.weapons = '0 0 0';
-       this.model = "";
-       FixPlayermodel(this);
-       setmodel(this, MDL_Null);
        this.drawonlytoclient = this;
 
        this.weaponname = "";