Merge pull request #2443 from mjhanninen/fix-osx-build-due-warnings
Qualify abs with namespace, use explicit cast
This commit is contained in:
commit
1cb612ccdc
@ -2124,7 +2124,7 @@ void cPlayer::UpdateMovementStats(const Vector3d & a_DeltaPos, bool a_PreviousIs
|
|||||||
else if (a_DeltaPos.y < 0.0)
|
else if (a_DeltaPos.y < 0.0)
|
||||||
{
|
{
|
||||||
// Increment statistic
|
// Increment statistic
|
||||||
m_Stats.AddValue(statDistFallen, (StatValue)(abs(a_DeltaPos.y) * 100 + 0.5));
|
m_Stats.AddValue(statDistFallen, static_cast<StatValue>(std::abs(a_DeltaPos.y) * 100 + 0.5));
|
||||||
}
|
}
|
||||||
// TODO: good opportunity to detect illegal flight (check for falling tho)
|
// TODO: good opportunity to detect illegal flight (check for falling tho)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user