]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't set it on observers
authorMario <mario@smbclan.net>
Wed, 29 Jun 2016 05:19:35 +0000 (15:19 +1000)
committerMario <mario@smbclan.net>
Wed, 29 Jun 2016 05:19:35 +0000 (15:19 +1000)
qcsrc/server/cl_client.qc

index 20ce6cd86c60b86bda060ddda1175c2163e3570a..c7d13eea3bb84a5bdd53ba0e9a62fc94a3550c2b 100644 (file)
@@ -200,7 +200,7 @@ void PutObserverInServer(entity this)
         this.angles_z = 0;
         this.fixangle = true;
         // offset it so that the spectator spawns higher off the ground, looks better this way
-        setorigin(this, spot.origin + STAT(PL_VIEW_OFS, this));
+        setorigin(this, spot.origin + STAT(PL_VIEW_OFS, NULL));
         this.prevorigin = this.origin;
         if (IS_REAL_CLIENT(this))
         {
@@ -217,7 +217,7 @@ void PutObserverInServer(entity this)
                FixPlayermodel(this);
         } 
         setmodel(this, MDL_Null);
-        setsize(this, STAT(PL_CROUCH_MIN, this), STAT(PL_CROUCH_MAX, this));
+        setsize(this, STAT(PL_CROUCH_MIN, NULL), STAT(PL_CROUCH_MAX, NULL));
         this.view_ofs = '0 0 0';
     }