X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fhavocbot%2Froles.qc;h=ba61b83940fb547b44649a8bfee6369141711920;hp=84c597329ea5fda0eb0930dfec079be15e7edb22;hb=65ba38c5228d8af26ac2b04b6e6e536a1772f446;hpb=af43b181a15f348a4de2045b716ebc7765ce8f9f diff --git a/qcsrc/server/bot/default/havocbot/roles.qc b/qcsrc/server/bot/default/havocbot/roles.qc index 84c597329e..ba61b83940 100644 --- a/qcsrc/server/bot/default/havocbot/roles.qc +++ b/qcsrc/server/bot/default/havocbot/roles.qc @@ -200,8 +200,8 @@ void havocbot_goalrating_enemyplayers(entity this, float ratingscale, vector org t = bound(0, 1 + t, 3); if (skill > 3) { - if (time < this.strength_finished - 1) t += 0.5; - if (time < it.strength_finished - 1) t -= 0.5; + if (time < STAT(STRENGTH_FINISHED, this) - 1) t += 0.5; + if (time < STAT(STRENGTH_FINISHED, it) - 1) t -= 0.5; if (time < this.invincible_finished - 1) t += 0.2; if (time < it.invincible_finished - 1) t -= 0.4; }