X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftrigger%2Fviewloc.qc;h=8b985795da8b8701bb69239f52caa7629df156d9;hp=50bf3d05ee0b1e597a352f783fe0b376dd9dd2b3;hb=95a5a2479a35e264473e8ba3fc4e584553da42b3;hpb=44583141c8a87415dc3bf3a9865da77d608b4585 diff --git a/qcsrc/common/triggers/trigger/viewloc.qc b/qcsrc/common/triggers/trigger/viewloc.qc index 50bf3d05e..8b985795d 100644 --- a/qcsrc/common/triggers/trigger/viewloc.qc +++ b/qcsrc/common/triggers/trigger/viewloc.qc @@ -76,9 +76,7 @@ bool trigger_viewloc_send(entity this, entity to, int sf) WriteEntity(MSG_ENTITY, this.enemy); WriteEntity(MSG_ENTITY, this.goalentity); - WriteCoord(MSG_ENTITY, this.origin_x); - WriteCoord(MSG_ENTITY, this.origin_y); - WriteCoord(MSG_ENTITY, this.origin_z); + WriteVector(MSG_ENTITY, this.origin); return true; } @@ -125,9 +123,7 @@ bool viewloc_send(entity this, entity to, int sf) WriteByte(MSG_ENTITY, this.cnt); - WriteCoord(MSG_ENTITY, this.origin_x); - WriteCoord(MSG_ENTITY, this.origin_y); - WriteCoord(MSG_ENTITY, this.origin_z); + WriteVector(MSG_ENTITY, this.origin); WriteAngle(MSG_ENTITY, this.angles_x); WriteAngle(MSG_ENTITY, this.angles_y); @@ -178,9 +174,7 @@ NET_HANDLE(ENT_CLIENT_VIEWLOC_TRIGGER, bool isnew) this.enemy = findfloat(NULL, entnum, point1); this.goalentity = findfloat(NULL, entnum, point2); - this.origin_x = ReadCoord(); - this.origin_y = ReadCoord(); - this.origin_z = ReadCoord(); + this.origin = ReadVector(); return = true; @@ -200,9 +194,7 @@ NET_HANDLE(ENT_CLIENT_VIEWLOC, bool isnew) { this.cnt = ReadByte(); - this.origin_x = ReadCoord(); - this.origin_y = ReadCoord(); - this.origin_z = ReadCoord(); + this.origin = ReadVector(); setorigin(this, this.origin); this.movedir_x = ReadAngle();