forked from Mirrorlandia_minetest/minetest
particles.cpp: Fix code-style
Mainly spacing and pointer placement
This commit is contained in:
parent
96762af3ce
commit
095f26a4f8
@ -101,8 +101,13 @@ Particle::Particle(
|
|||||||
m_glow = glow;
|
m_glow = glow;
|
||||||
|
|
||||||
// Irrlicht stuff
|
// Irrlicht stuff
|
||||||
m_collisionbox = aabb3f
|
m_collisionbox = aabb3f(
|
||||||
(-size/2,-size/2,-size/2,size/2,size/2,size/2);
|
-size / 2,
|
||||||
|
-size / 2,
|
||||||
|
-size / 2,
|
||||||
|
size / 2,
|
||||||
|
size / 2,
|
||||||
|
size / 2);
|
||||||
this->setAutomaticCulling(scene::EAC_OFF);
|
this->setAutomaticCulling(scene::EAC_OFF);
|
||||||
|
|
||||||
// Init lighting
|
// Init lighting
|
||||||
@ -381,7 +386,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env)
|
|||||||
for (std::vector<float>::iterator i = m_spawntimes.begin();
|
for (std::vector<float>::iterator i = m_spawntimes.begin();
|
||||||
i != m_spawntimes.end();) {
|
i != m_spawntimes.end();) {
|
||||||
if ((*i) <= m_time && m_amount > 0) {
|
if ((*i) <= m_time && m_amount > 0) {
|
||||||
m_amount--;
|
--m_amount;
|
||||||
|
|
||||||
// Pretend to, but don't actually spawn a particle if it is
|
// Pretend to, but don't actually spawn a particle if it is
|
||||||
// attached to an unloaded object or distant from player.
|
// attached to an unloaded object or distant from player.
|
||||||
|
Loading…
Reference in New Issue
Block a user