From 170e3b9ac96f66ea58e6fb7d26057323f75b74fe Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 13 Jan 2022 19:30:00 +0100 Subject: [PATCH] Add a comment about DAMAGE_DEALT_TOTAL accuracy --- qcsrc/server/world.qc | 2 ++ 1 file changed, 2 insertions(+) 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); } }); -- 2.39.2