]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Replace most floor(...+0.5) instances with rint k9er/use-rint 1391/head
authorotta8634 <k9wolf@pm.me>
Thu, 5 Dec 2024 04:47:07 +0000 (12:47 +0800)
committerotta8634 <k9wolf@pm.me>
Thu, 5 Dec 2024 04:47:07 +0000 (12:47 +0800)
commite852a40733b93417b39f06db01dc04eb3f96f6a3
treeca4eb5cd1997c7e4fd0d8e7b66c536a57d7e704f
parent3f9820ed585f880602172c75048f076034af77aa
Replace most floor(...+0.5) instances with rint

Only touched instances I could confirm the input is only ever positive,
... since rint(x) and floor(x+0.5) aren't identical if x<0
14 files changed:
qcsrc/client/announcer.qc
qcsrc/client/hud/hud_config.qc
qcsrc/client/hud/panel/physics.qc
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc
qcsrc/common/gamemodes/gamemode/domination/cl_domination.qc
qcsrc/common/sounds/all.qc
qcsrc/common/util.qc
qcsrc/common/util.qh
qcsrc/lib/color.qh
qcsrc/lib/string.qh
qcsrc/menu/item/slider.qc
qcsrc/menu/xonotic/keybinder.qc
qcsrc/server/race.qc