Fix switch on float error

This commit is contained in:
ineed bots 2022-04-18 15:00:37 -06:00
parent e71722bbe9
commit 89c2abb5f1

View File

@ -627,7 +627,7 @@ diffBots_loop()
if ( !player is_bot() )
continue;
player.pers["bots"]["skill"]["base"] = clamp(player.pers["bots"]["skill"]["base"], GetDvarInt("bots_skill_min"), GetDvarInt("bots_skill_max"));
player.pers["bots"]["skill"]["base"] = int(clamp(player.pers["bots"]["skill"]["base"], GetDvarInt("bots_skill_min"), GetDvarInt("bots_skill_max")));
}
}