- t = int(std::min(Peak, std::min(0.4 * i * i, t + MaxSlope)));
- KingDanger[i] = apply_weight(make_score(t, 0), Weights[KingSafety]);
+ t = std::min(Peak, std::min(0.025 * i * i, t + MaxSlope));
+ KingDanger[i] = apply_weight(make_score(int(t), 0), Weights[KingSafety]);