From: terencehill Date: Tue, 7 Mar 2017 01:27:42 +0000 (+0100) Subject: Fix another case of bad pow to ** conversion X-Git-Tag: xonotic-v0.8.2~118 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c38aed12ae95429d6ee78dd430c4fc9a9cf1a62d;p=xonotic%2Fxonotic-data.pk3dir.git Fix another case of bad pow to ** conversion --- diff --git a/qcsrc/server/bot/default/aim.qc b/qcsrc/server/bot/default/aim.qc index b16de9afa..eac7fdeb0 100644 --- a/qcsrc/server/bot/default/aim.qc +++ b/qcsrc/server/bot/default/aim.qc @@ -281,7 +281,7 @@ float bot_aimdir(entity this, vector v, float maxfiredeviation) blendrate = autocvar_bot_ai_aimskill_blendrate; r = max(fixedrate, blendrate); //this.v_angle = this.v_angle + diffang * bound(frametime, r * frametime * (2+skill*skill*0.05-random()*0.05*(10-skill)), 1); - this.v_angle = this.v_angle + diffang * bound(delta_t, r * delta_t * (2+(skill+this.bot_mouseskill ** 3)*0.005-random()), 1); + this.v_angle = this.v_angle + diffang * bound(delta_t, r * delta_t * (2 + ((skill + this.bot_mouseskill) ** 3) * 0.005 - random()), 1); this.v_angle = this.v_angle * bound(0,autocvar_bot_ai_aimskill_mouse,1) + desiredang * bound(0,(1-autocvar_bot_ai_aimskill_mouse),1); //this.v_angle = this.v_angle + diffang * bound(0, r * frametime * (skill * 0.5 + 2), 1); //this.v_angle = this.v_angle + diffang * (1/ blendrate);