From: Mario Date: Sat, 5 Mar 2016 01:03:31 +0000 (+1000) Subject: Round up the health/armor values before sending them X-Git-Tag: xonotic-v0.8.2~1155 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=07069d3c2ad9e6d763d5cf12a3ada65ea55c122b;p=xonotic%2Fxonotic-data.pk3dir.git Round up the health/armor values before sending them --- diff --git a/qcsrc/common/mutators/mutator/damagetext/damagetext.qc b/qcsrc/common/mutators/mutator/damagetext/damagetext.qc index 6a33ab34e..866ffeb4c 100644 --- a/qcsrc/common/mutators/mutator/damagetext/damagetext.qc +++ b/qcsrc/common/mutators/mutator/damagetext/damagetext.qc @@ -98,8 +98,8 @@ MUTATOR_HOOKFUNCTION(damagetext, PlayerDamaged) { ) { msg_entity = it; WriteHeader(MSG_ONE, damagetext); - WriteShort(MSG_ONE, health); - WriteShort(MSG_ONE, armor); + WriteShort(MSG_ONE, rint(health)); + WriteShort(MSG_ONE, rint(armor)); WriteEntity(MSG_ONE, hit); WriteCoord(MSG_ONE, location.x); WriteCoord(MSG_ONE, location.y);