Skip to content

Commit b81f1b0

Browse files
authored
[GEN][ZH] Fix hollow BOX particles treated as LINE particles in ParticleSystem::computeParticlePosition() (#756)
A break statement was in the wrong scope leading to hollow boxes behaving as though they were line systems.
1 parent 86587a8 commit b81f1b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Source/GameClient/System/ParticleSys.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,8 +1737,8 @@ const Coord3D *ParticleSystem::computeParticlePosition( void )
17371737
newPos.x = GameClientRandomValueReal( -m_emissionVolume.box.halfSize.x, m_emissionVolume.box.halfSize.x );
17381738
newPos.y = GameClientRandomValueReal( -m_emissionVolume.box.halfSize.y, m_emissionVolume.box.halfSize.y );
17391739
newPos.z = GameClientRandomValueReal( -m_emissionVolume.box.halfSize.z, m_emissionVolume.box.halfSize.z );
1740-
break;
17411740
}
1741+
break;
17421742
}
17431743

17441744
case LINE:

GeneralsMD/Code/GameEngine/Source/GameClient/System/ParticleSys.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,8 +1637,8 @@ const Coord3D *ParticleSystem::computeParticlePosition( void )
16371637
newPos.x = GameClientRandomValueReal( -m_emissionVolume.box.halfSize.x, m_emissionVolume.box.halfSize.x );
16381638
newPos.y = GameClientRandomValueReal( -m_emissionVolume.box.halfSize.y, m_emissionVolume.box.halfSize.y );
16391639
newPos.z = GameClientRandomValueReal( -m_emissionVolume.box.halfSize.z, m_emissionVolume.box.halfSize.z );
1640-
break;
16411640
}
1641+
break;
16421642
}
16431643

16441644
case LINE:

0 commit comments

Comments
 (0)