Core/Game: fix all warnings related to converting doubles and floats.

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-08-22 12:39:39 -07:00
parent 399e35f8f5
commit 5cbae843d5
39 changed files with 378 additions and 380 deletions
+3 -3
View File
@@ -175,16 +175,16 @@ bool Weather::ReGenerate()
}
else if (u < 90)
{
m_grade = rand_norm() * 0.3333f;
m_grade = (float)rand_norm() * 0.3333f;
}
else
{
// Severe change, but how severe?
rnd = urand(0, 99);
if (rnd < 50)
m_grade = rand_norm() * 0.3333f + 0.3334f;
m_grade = (float)rand_norm() * 0.3333f + 0.3334f;
else
m_grade = rand_norm() * 0.3333f + 0.6667f;
m_grade = (float)rand_norm() * 0.3333f + 0.6667f;
}
// return true only in case weather changes