]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Fix g_nades_ice_explode 1 and g_nades_darkness_explode 1 spamming div by 0 warnings... terencehill/nade_timer_fix 1495/head
authorterencehill <piuntn@gmail.com>
Fri, 18 Apr 2025 21:23:43 +0000 (23:23 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 18 Apr 2025 21:34:31 +0000 (23:34 +0200)
commitc636b9b1610e1b4393d8f1b96d11cb730513e157
tree2f831b1f0e94f74daf3554426d842e6133e170c5
parent22d59296cc2c5e1828eaffab0fbc9f4b08fd6179
Fix g_nades_ice_explode 1 and g_nades_darkness_explode 1 spamming div by 0 warnings and showing a nade timer with the wrong values

Regarding ice.qc and darknes.qc the only functional change is the addition of `timer.nade_lifetime = this.nade_lifetime;`,
the remaining changes are cleanups to make the code more intuitive and readable
qcsrc/common/mutators/mutator/nades/nade/darkness.qc
qcsrc/common/mutators/mutator/nades/nade/ice.qc
qcsrc/common/mutators/mutator/nades/sv_nades.qc
qcsrc/common/mutators/mutator/nades/sv_nades.qh