From: <au...@us...> - 2011-01-05 20:57:11
|
Revision: 7280 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=7280&view=rev Author: auria Date: 2011-01-05 20:57:05 +0000 (Wed, 05 Jan 2011) Log Message: ----------- Add braces in switch to please GCC Modified Paths: -------------- main/trunk/src/graphics/particle_emitter.cpp Modified: main/trunk/src/graphics/particle_emitter.cpp =================================================================== --- main/trunk/src/graphics/particle_emitter.cpp 2011-01-05 20:56:30 UTC (rev 7279) +++ main/trunk/src/graphics/particle_emitter.cpp 2011-01-05 20:57:05 UTC (rev 7280) @@ -64,6 +64,7 @@ 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 @@ 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 @@ 0 /* angle */ ); break; + } default: + { fprintf(stderr, "[ParticleEmitter] Unknown shape\n"); return; + } } m_emitter->setMinStartSize(core::dimension2df(minSize, minSize)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |