Bot code causes division by zero
The following error is triggered when bots connect:
Attempted division by zero in server
s474024: found_secrets:234: STOREP_V GLOBAL52183, GLOBAL52159
s474025: found_secrets:237: FIELD_F GLOBAL52177, .bot_prevaimtime (=.bot_prevaimtime), GLOBAL52159
s474026: found_secrets:237: SUB_F time (=3.10009813), GLOBAL52159, GLOBAL52182
s474027: found_secrets:238: ADDRESS GLOBAL52177, .bot_prevaimtime (=.bot_prevaimtime), GLOBAL52159
s474028: found_secrets:238: STOREP_F time (=3.10009813), GLOBAL52159
s474029: found_secrets:240: ADDRESS GLOBAL52177, .bot_1st_order_aimfilter (=.bot_1st_order_aimfilter), GLOBAL52189
s474030: found_secrets:240: FIELD_V GLOBAL52177, .bot_1st_order_aimfilter (=.bot_1st_order_aimfilter), GLOBAL52192
s474031: found_secrets:241: DIV GLOBAL25736, GLOBAL52182, GLOBAL52159
found_secrets:241 : bot_aimdir : statement 70
d:1229 : havocbot_movetogoal : statement 777
d:152 : havocbot_ai : statement 110
ound_secrets:142 : bot_think : statement 136
ld:37 : sys_phys_ai : statement 5
./ecs/systems/physics.qc:29 : sys_phys_update : statement 76
./common/physics/player.qc:840 : _SV_PlayerPhysics : statement 9
:258 : SV_PlayerPhysics : statement 3
unconnected changed name to [BOT]Delirium
Steps to reproduce: ./all run +developer -1 +minplayers 8 +chmap stormkeep
Tested with xonotic-v0.8.2-2445-g9ff975c1d
Older commit that is fine: xonotic-v0.8.2-2364-gca48b1e33 (not the commit that caused it, the issue arised between these)