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:
parent
e627ccc8f8
commit
c1c0a34897
@ -64,6 +64,7 @@ ParticleEmitter::ParticleEmitter(ParticleKind* type, core::vector3df position,
|
|||||||
switch (type->getShape())
|
switch (type->getShape())
|
||||||
{
|
{
|
||||||
case EMITTER_POINT:
|
case EMITTER_POINT:
|
||||||
|
{
|
||||||
// FIXME: does the maxAngle param work at all??
|
// FIXME: does the maxAngle param work at all??
|
||||||
// FIXME: the min and max color params don't appear to work
|
// 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
|
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 */
|
0 /* angle */
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case EMITTER_BOX:
|
case EMITTER_BOX:
|
||||||
|
{
|
||||||
// FIXME: does the maxAngle param work at all??
|
// FIXME: does the maxAngle param work at all??
|
||||||
// FIXME: the min and max color params don't appear to work
|
// FIXME: the min and max color params don't appear to work
|
||||||
const float box_x = type->getBoxSizeX()/2.0f;
|
const float box_x = type->getBoxSizeX()/2.0f;
|
||||||
@ -90,11 +93,14 @@ ParticleEmitter::ParticleEmitter(ParticleKind* type, core::vector3df position,
|
|||||||
0 /* angle */
|
0 /* angle */
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
{
|
||||||
fprintf(stderr, "[ParticleEmitter] Unknown shape\n");
|
fprintf(stderr, "[ParticleEmitter] Unknown shape\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_emitter->setMinStartSize(core::dimension2df(minSize, minSize));
|
m_emitter->setMinStartSize(core::dimension2df(minSize, minSize));
|
||||||
m_emitter->setMaxStartSize(core::dimension2df(maxSize, maxSize));
|
m_emitter->setMaxStartSize(core::dimension2df(maxSize, maxSize));
|
||||||
|
Loading…
Reference in New Issue
Block a user