From c1c0a34897d8f3d468174669c36e27f7e6b64172 Mon Sep 17 00:00:00 2001 From: auria Date: Wed, 5 Jan 2011 20:57:05 +0000 Subject: [PATCH] Add braces in switch to please GCC git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7280 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/particle_emitter.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/graphics/particle_emitter.cpp b/src/graphics/particle_emitter.cpp index 3c564c2f5..9d0adb9ce 100644 --- a/src/graphics/particle_emitter.cpp +++ b/src/graphics/particle_emitter.cpp @@ -64,6 +64,7 @@ ParticleEmitter::ParticleEmitter(ParticleKind* type, core::vector3df position, switch (type->getShape()) { case EMITTER_POINT: + { // FIXME: does the maxAngle param work at all?? // FIXME: the min and max color params don't appear to work m_emitter = m_node->createPointEmitter(core::vector3df(0.0f, 0.0f, 0.0f), // velocity in m/ms @@ -73,8 +74,10 @@ ParticleEmitter::ParticleEmitter(ParticleKind* type, core::vector3df position, 0 /* angle */ ); break; - + } + case EMITTER_BOX: + { // FIXME: does the maxAngle param work at all?? // FIXME: the min and max color params don't appear to work const float box_x = type->getBoxSizeX()/2.0f; @@ -90,10 +93,13 @@ ParticleEmitter::ParticleEmitter(ParticleKind* type, core::vector3df position, 0 /* angle */ ); break; + } default: + { fprintf(stderr, "[ParticleEmitter] Unknown shape\n"); return; + } } m_emitter->setMinStartSize(core::dimension2df(minSize, minSize));