aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/HugeExplosionSeedParticle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/HugeExplosionSeedParticle.cpp')
-rw-r--r--Minecraft.Client/HugeExplosionSeedParticle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.Client/HugeExplosionSeedParticle.cpp b/Minecraft.Client/HugeExplosionSeedParticle.cpp
index bb8c8f22..7514cc44 100644
--- a/Minecraft.Client/HugeExplosionSeedParticle.cpp
+++ b/Minecraft.Client/HugeExplosionSeedParticle.cpp
@@ -24,9 +24,9 @@ void HugeExplosionSeedParticle::tick()
double xx = x + (random->nextDouble() - random->nextDouble()) * 4;
double yy = y + (random->nextDouble() - random->nextDouble()) * 4;
double zz = z + (random->nextDouble() - random->nextDouble()) * 4;
- level->addParticle(eParticleType_largeexplode, xx, yy, zz, life / static_cast<float>(lifeTime), 0, 0);
+ level->addParticle(eParticleType_largeexplode, xx, yy, zz, life / (float) lifeTime, 0, 0);
}
- Minecraft::GetInstance()->animateTickLevel = nullptr;
+ Minecraft::GetInstance()->animateTickLevel = NULL;
life++;
if (life == lifeTime) remove();
}