Core/Game: fix all warnings related to converting doubles and floats.
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user