summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Hänninen <matti@mjhanninen.com>2015-08-21 22:37:11 +0200
committerMatti Hänninen <matti@mjhanninen.com>2015-08-21 23:36:29 +0200
commit12fb95ba2f51d3104b68054ea2f7a1200d21592a (patch)
tree5b1d20dd638f9a1be6e4f86c6a095cfe1bf47a2c /src
parentMerge pull request #2380 from cuberite/travis (diff)
downloadcuberite-12fb95ba2f51d3104b68054ea2f7a1200d21592a.tar
cuberite-12fb95ba2f51d3104b68054ea2f7a1200d21592a.tar.gz
cuberite-12fb95ba2f51d3104b68054ea2f7a1200d21592a.tar.bz2
cuberite-12fb95ba2f51d3104b68054ea2f7a1200d21592a.tar.lz
cuberite-12fb95ba2f51d3104b68054ea2f7a1200d21592a.tar.xz
cuberite-12fb95ba2f51d3104b68054ea2f7a1200d21592a.tar.zst
cuberite-12fb95ba2f51d3104b68054ea2f7a1200d21592a.zip
Diffstat (limited to 'src')
-rw-r--r--src/Entities/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index b8673420d..910ad4c0e 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -2124,7 +2124,7 @@ void cPlayer::UpdateMovementStats(const Vector3d & a_DeltaPos, bool a_PreviousIs
else if (a_DeltaPos.y < 0.0)
{
// 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)
}