Remove some useless casts

No functional change.
This commit is contained in:
Marco Costalba
2014-04-27 11:40:44 +02:00
parent c9e396b542
commit 86c20416c8
6 changed files with 10 additions and 10 deletions

View File

@@ -915,12 +915,12 @@ namespace Eval {
Weights[KingDangerUs] = weight_option("Cowardice", "Cowardice", WeightsInternal[KingDangerUs]);
Weights[KingDangerThem] = weight_option("Aggressiveness", "Aggressiveness", WeightsInternal[KingDangerThem]);
const int MaxSlope = 30;
const int Peak = 1280;
const double MaxSlope = 30;
const double Peak = 1280;
for (int t = 0, i = 1; i < 100; ++i)
{
t = std::min(Peak, std::min(int(0.4 * i * i), t + MaxSlope));
t = std::min(Peak, std::min(0.4 * i * i, t + MaxSlope));
KingDanger[1][i] = apply_weight(make_score(t, 0), Weights[KingDangerUs]);
KingDanger[0][i] = apply_weight(make_score(t, 0), Weights[KingDangerThem]);