summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/TNTHandler.h
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-12-19 23:17:31 +0100
committerworktycho <work.tycho@gmail.com>2015-12-19 23:17:31 +0100
commitbb79b5f43691aeeeb44fd3459464f5ae591a993d (patch)
treebdd074dd9d0bacb7000402b78ac8fe5dc7a7cdd2 /src/Simulator/IncrementalRedstoneSimulator/TNTHandler.h
parentHTTPS Newsletter (diff)
parentFixes for clang-3.7 (diff)
downloadcuberite-bb79b5f43691aeeeb44fd3459464f5ae591a993d.tar
cuberite-bb79b5f43691aeeeb44fd3459464f5ae591a993d.tar.gz
cuberite-bb79b5f43691aeeeb44fd3459464f5ae591a993d.tar.bz2
cuberite-bb79b5f43691aeeeb44fd3459464f5ae591a993d.tar.lz
cuberite-bb79b5f43691aeeeb44fd3459464f5ae591a993d.tar.xz
cuberite-bb79b5f43691aeeeb44fd3459464f5ae591a993d.tar.zst
cuberite-bb79b5f43691aeeeb44fd3459464f5ae591a993d.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator/TNTHandler.h')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/TNTHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/TNTHandler.h b/src/Simulator/IncrementalRedstoneSimulator/TNTHandler.h
index f51e39a17..a4dce30c6 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/TNTHandler.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/TNTHandler.h
@@ -42,7 +42,7 @@ public:
LOGD("Evaluating explodinator the trinitrotoluene (%d %d %d)", a_Position.x, a_Position.y, a_Position.z);
if (a_PoweringData.PowerLevel != 0)
{
- m_World.BroadcastSoundEffect("game.tnt.primed", (double)a_Position.x, (double)a_Position.y, (double)a_Position.z, 0.5f, 0.6f);
+ m_World.BroadcastSoundEffect("game.tnt.primed", static_cast<double>(a_Position.x), static_cast<double>(a_Position.y), static_cast<double>(a_Position.z), 0.5f, 0.6f);
m_World.SetBlock(a_Position.x, a_Position.y, a_Position.z, E_BLOCK_AIR, 0);
m_World.SpawnPrimedTNT(a_Position.x + 0.5, a_Position.y + 0.5, a_Position.z + 0.5); // 80 ticks to boom
}