]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
save another byte
authorMartin Taibr <taibr.martin@gmail.com>
Sat, 6 May 2017 23:16:49 +0000 (01:16 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Sat, 6 May 2017 23:16:49 +0000 (01:16 +0200)
qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc
qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc

index 4e224aa4aa0b699fc6490817b47f8f31cb3fc65e..b2029a9addbce411cf3990b03f46a09359662984 100644 (file)
@@ -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;
index a0b1c9be6bd9a917280d07dea4047de5db2e78db..8daf920307d96c3d533e6b0586f699b3d6a46fed 100644 (file)
@@ -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);