mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 13:07:42 +00:00
Remove arbitrary particle limit of 256, unfortunately this breaks various particle systems including Essence Shockwave and flamethrower particles
This commit is contained in:
@@ -368,15 +368,6 @@ void CNewFlameThrower::UpdateFx(const zeus::CTransform& xf, float dt, CStateMana
|
||||
float tmp = std::clamp(unk.magnitude() * 30.f, 1.f, x37c_26_runningSlowish ? 2.f : 4.f);
|
||||
|
||||
x3b4_numSmokeParticlesSpawned = std::max(static_cast<int>(round(tmp)), x3b4_numSmokeParticlesSpawned - 1);
|
||||
// INSERT
|
||||
if ((x35c_mainSmokeGen->GetParticles().size() + x3b4_numSmokeParticlesSpawned) >
|
||||
x35c_mainSmokeGen->GetMaxMaxParticles()) {
|
||||
x3b4_numSmokeParticlesSpawned = x3b4_numSmokeParticlesSpawned -
|
||||
((x35c_mainSmokeGen->GetParticles().size() + x3b4_numSmokeParticlesSpawned) -
|
||||
x35c_mainSmokeGen->GetMaxMaxParticles());
|
||||
}
|
||||
// END INSERT
|
||||
// This limit shouldn't be needed, m_maxMAXP should be removed?
|
||||
|
||||
x35c_mainSmokeGen->SetTranslation(swoosh_1.xc_translation);
|
||||
x35c_mainSmokeGen->SetOrientation(swoosh_1.x38_orientation);
|
||||
|
||||
Reference in New Issue
Block a user