X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_models.qc;h=d3f56f5f04424f55b9eb77c3a40fc92422ea7175;hb=af376cc21c7130e4d62257778b6f08fb03056120;hp=348f307270d84b52c2ab9a6486318a948a81fdaa;hpb=a4bcbda7a1eb2367fae1c2514d474d426803a673;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_models.qc b/qcsrc/server/g_models.qc index 348f30727..d3f56f5f0 100644 --- a/qcsrc/server/g_models.qc +++ b/qcsrc/server/g_models.qc @@ -1,6 +1,7 @@ #include "g_models.qh" #include "g_subs.qh" +#include #include "../common/triggers/subs.qh" #include "../common/triggers/triggers.qh" @@ -98,6 +99,7 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf) { if(sf & 0x40) WriteShort(MSG_ENTITY, this.colormap); + WriteByte(MSG_ENTITY, this.skin); } if(sf & BIT(1)) @@ -152,11 +154,11 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf) WriteCoord(MSG_ENTITY, this.movedir.z); WriteByte(MSG_ENTITY, floor(this.lip * 255)); } - WriteShort(MSG_ENTITY, this.fade_start); - WriteShort(MSG_ENTITY, this.fade_end); - WriteShort(MSG_ENTITY, this.alpha_max); - WriteShort(MSG_ENTITY, this.alpha_min); - WriteShort(MSG_ENTITY, this.inactive); + WriteByte(MSG_ENTITY, this.fade_start); + WriteByte(MSG_ENTITY, this.fade_end); + WriteByte(MSG_ENTITY, this.alpha_max); + WriteByte(MSG_ENTITY, this.alpha_min); + WriteByte(MSG_ENTITY, this.inactive); WriteShort(MSG_ENTITY, this.fade_vertical_offset); }