From: Mario Date: Wed, 29 Jun 2016 05:19:35 +0000 (+1000) Subject: Don't set it on observers X-Git-Tag: xonotic-v0.8.2~700^2~113 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=09cbf2802a64f88fc5fa59b0d12eca1799132117;p=xonotic%2Fxonotic-data.pk3dir.git Don't set it on observers --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 20ce6cd86..c7d13eea3 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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'; }