X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_models.qc;h=1026e3aa7a2dfaa6b0a139c3ad75eca12e141f94;hb=f41f81f37e3ecf5a2d14f7bc7ffd7bbf09fff32e;hp=539522f2dce7f61ca49d840f6040439450916e8c;hpb=fdbfb6f9364d8aeae67e108400a6bd1dd37dc0b7;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_models.qc b/qcsrc/server/g_models.qc index 539522f2d..1026e3aa7 100644 --- a/qcsrc/server/g_models.qc +++ b/qcsrc/server/g_models.qc @@ -106,9 +106,7 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf) if(sf & BIT(1)) { - WriteCoord(MSG_ENTITY, this.origin.x); - WriteCoord(MSG_ENTITY, this.origin.y); - WriteCoord(MSG_ENTITY, this.origin.z); + WriteVector(MSG_ENTITY, this.origin); } if(sf & BIT(2)) @@ -137,12 +135,8 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf) WriteShort(MSG_ENTITY, floor(this.scale * 256)); if(sf & 0x20) { - WriteCoord(MSG_ENTITY, this.mins.x); - WriteCoord(MSG_ENTITY, this.mins.y); - WriteCoord(MSG_ENTITY, this.mins.z); - WriteCoord(MSG_ENTITY, this.maxs.x); - WriteCoord(MSG_ENTITY, this.maxs.y); - WriteCoord(MSG_ENTITY, this.maxs.z); + WriteVector(MSG_ENTITY, this.mins); + WriteVector(MSG_ENTITY, this.maxs); } WriteString(MSG_ENTITY, this.bgmscript); if(this.bgmscript != "") @@ -151,9 +145,7 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf) WriteByte(MSG_ENTITY, floor(this.bgmscriptdecay * 64)); WriteByte(MSG_ENTITY, floor(this.bgmscriptsustain * 255)); WriteByte(MSG_ENTITY, floor(this.bgmscriptrelease * 64)); - WriteCoord(MSG_ENTITY, this.movedir.x); - WriteCoord(MSG_ENTITY, this.movedir.y); - WriteCoord(MSG_ENTITY, this.movedir.z); + WriteVector(MSG_ENTITY, this.movedir); WriteByte(MSG_ENTITY, floor(this.lip * 255)); } WriteByte(MSG_ENTITY, this.fade_start);