]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
havocbot_chooseweapon: minor optimizations and cleanups
authorterencehill <piuntn@gmail.com>
Thu, 31 Oct 2024 11:47:40 +0000 (12:47 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 31 Oct 2024 11:47:40 +0000 (12:47 +0100)
commitae52fa9f24f0148f7f14affcae2e4d2db2c0a704
tree2433ab659f2be2e48f9af1df67d09a07e8902e60
parent55bb84d5a23db56464fa3e92e97488ad6d407561
havocbot_chooseweapon: minor optimizations and cleanups

Optimizations:
- Simplify combo_time calculation
- Calculate distance only when needed
qcsrc/server/bot/default/havocbot/havocbot.qc