From: Mario Date: Sun, 11 Sep 2016 11:49:02 +0000 (+1000) Subject: Use WriteAngle instead of WriteCoord to network viewlocation angles X-Git-Tag: xonotic-v0.8.2~599 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=559563e83761c22069554f8c9d0c65eac5e54298;p=xonotic%2Fxonotic-data.pk3dir.git Use WriteAngle instead of WriteCoord to network viewlocation angles --- diff --git a/qcsrc/common/triggers/trigger/viewloc.qc b/qcsrc/common/triggers/trigger/viewloc.qc index d53ac5dca..a60026354 100644 --- a/qcsrc/common/triggers/trigger/viewloc.qc +++ b/qcsrc/common/triggers/trigger/viewloc.qc @@ -102,9 +102,9 @@ bool viewloc_send(entity this, entity to, int sf) WriteCoord(MSG_ENTITY, this.origin_y); WriteCoord(MSG_ENTITY, this.origin_z); - WriteCoord(MSG_ENTITY, this.angles_x); - WriteCoord(MSG_ENTITY, this.angles_y); - WriteCoord(MSG_ENTITY, this.angles_z); + WriteAngle(MSG_ENTITY, this.angles_x); + WriteAngle(MSG_ENTITY, this.angles_y); + WriteAngle(MSG_ENTITY, this.angles_z); return true; } @@ -176,9 +176,9 @@ NET_HANDLE(ENT_CLIENT_VIEWLOC, bool isnew) this.origin_z = ReadCoord(); setorigin(this, this.origin); - this.movedir_x = ReadCoord(); - this.movedir_y = ReadCoord(); - this.movedir_z = ReadCoord(); + this.movedir_x = ReadAngle(); + this.movedir_y = ReadAngle(); + this.movedir_z = ReadAngle(); return = true;