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
This commit is contained in:
auria 2011-01-05 20:57:05 +00:00
parent e627ccc8f8
commit c1c0a34897

View File

@ -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,11 +93,14 @@ 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));
m_emitter->setMaxStartSize(core::dimension2df(maxSize, maxSize));