diff options
author | Mattes D <github@xoft.cz> | 2019-09-27 17:51:44 +0200 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2019-09-27 17:51:44 +0200 |
commit | 180a43d09721a32ad502f5e583d3b2d797501c00 (patch) | |
tree | 3b70a9188246ce86b3846c5d9d783171efa1dec3 /src/ChunkMap.cpp | |
parent | Fix clang8.0 build (#4399) (diff) | |
download | cuberite-180a43d09721a32ad502f5e583d3b2d797501c00.tar cuberite-180a43d09721a32ad502f5e583d3b2d797501c00.tar.gz cuberite-180a43d09721a32ad502f5e583d3b2d797501c00.tar.bz2 cuberite-180a43d09721a32ad502f5e583d3b2d797501c00.tar.lz cuberite-180a43d09721a32ad502f5e583d3b2d797501c00.tar.xz cuberite-180a43d09721a32ad502f5e583d3b2d797501c00.tar.zst cuberite-180a43d09721a32ad502f5e583d3b2d797501c00.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index bc88f4e7b..a859deca5 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -1376,7 +1376,7 @@ void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_ double Length = DistanceFromExplosion.Length(); if (Length <= ExplosionSizeInt) // Entity is impacted by explosion { - float EntityExposure = a_Entity.GetExplosionExposureRate(ExplosionPos, ExplosionSizeInt); + float EntityExposure = a_Entity.GetExplosionExposureRate(ExplosionPos, static_cast<float>(a_ExplosionSize)); // Exposure reduced by armor EntityExposure = EntityExposure * (1.0f - a_Entity.GetEnchantmentBlastKnockbackReduction()); |