particles.cpp: Fix code-style

Mainly spacing and pointer placement
This commit is contained in:
ANAND 2019-08-17 12:09:40 +05:30 committed by SmallJoker
parent 96762af3ce
commit 095f26a4f8

@ -101,8 +101,13 @@ Particle::Particle(
m_glow = glow;
// Irrlicht stuff
m_collisionbox = aabb3f
(-size/2,-size/2,-size/2,size/2,size/2,size/2);
m_collisionbox = aabb3f(
-size / 2,
-size / 2,
-size / 2,
size / 2,
size / 2,
size / 2);
this->setAutomaticCulling(scene::EAC_OFF);
// Init lighting
@ -381,7 +386,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env)
for (std::vector<float>::iterator i = m_spawntimes.begin();
i != m_spawntimes.end();) {
if ((*i) <= m_time && m_amount > 0) {
m_amount--;
--m_amount;
// Pretend to, but don't actually spawn a particle if it is
// attached to an unloaded object or distant from player.