]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a comment about DAMAGE_DEALT_TOTAL accuracy
authorterencehill <piuntn@gmail.com>
Thu, 13 Jan 2022 18:30:00 +0000 (19:30 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 13 Jan 2022 18:30:00 +0000 (19:30 +0100)
qcsrc/server/world.qc

index a438e633f61a71f7f47e89bd95bd6c93fe72f58b..305aa305c63c5f60a18fbd80418fc66b0f74a0d0 100644 (file)
@@ -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);
                }
        });