- t = std::min(Peak, std::min(0.027 * i * i, t + MaxSlope));
- KingDanger[i] = apply_weight(make_score(int(t), 0), Weights[KingSafety]);
+ t = std::min(Peak, std::min(i * i * 27 / 100, t + MaxSlope));
+ KingDanger[i] = apply_weight(make_score(t / 10, 0), Weights[KingSafety]);