From: Martin Taibr Date: Sat, 6 May 2017 23:16:49 +0000 (+0200) Subject: save another byte X-Git-Tag: xonotic-v0.8.5~2656^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1e4e86b0df32982f99e7ba911fafbdbbfb291e8e;p=xonotic%2Fxonotic-data.pk3dir.git save another byte --- diff --git a/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc b/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc index 4e224aa4a..b2029a9ad 100644 --- a/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc +++ b/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc @@ -191,7 +191,7 @@ ENDCLASS(DamageText) NET_HANDLE(damagetext, bool isNew) { - int server_entity_index = ReadShort(); + int server_entity_index = ReadByte(); int deathtype = ReadInt24_t(); int flags = ReadByte(); bool friendlyfire = flags & DTFLAG_SAMETEAM; diff --git a/qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc b/qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc index a0b1c9be6..8daf92030 100644 --- a/qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc +++ b/qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc @@ -33,7 +33,7 @@ MUTATOR_HOOKFUNCTION(damagetext, PlayerDamaged) { msg_entity = it; WriteHeader(MSG_ONE, damagetext); - WriteEntity(MSG_ONE, hit); + WriteByte(MSG_ONE, etof(hit)); WriteInt24_t(MSG_ONE, deathtype); WriteByte(MSG_ONE, flags);