From: terencehill Date: Thu, 13 Jan 2022 18:30:00 +0000 (+0100) Subject: Add a comment about DAMAGE_DEALT_TOTAL accuracy X-Git-Tag: xonotic-v0.8.5~236 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=170e3b9ac96f66ea58e6fb7d26057323f75b74fe;p=xonotic%2Fxonotic-data.pk3dir.git Add a comment about DAMAGE_DEALT_TOTAL accuracy --- diff --git a/qcsrc/server/world.qc b/qcsrc/server/world.qc index a438e633f..305aa305c 100644 --- a/qcsrc/server/world.qc +++ b/qcsrc/server/world.qc @@ -2296,6 +2296,8 @@ void EndFrame() STAT(KILL_TIME, it) = time; } else if (e.damage_dealt) { STAT(HIT_TIME, it) = time; + // NOTE: total damage dealt stat is not accurate as client + // code doesn't need so much accuracy for its purposes STAT(DAMAGE_DEALT_TOTAL, it) += ceil(e.damage_dealt); } });