From 559563e83761c22069554f8c9d0c65eac5e54298 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 11 Sep 2016 21:49:02 +1000 Subject: [PATCH] Use WriteAngle instead of WriteCoord to network viewlocation angles --- qcsrc/common/triggers/trigger/viewloc.qc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; -- 2.39.2