Skip to content

Commit 83282b6

Browse files
authored
Actually take the power of 3 (scp-fs2open#6837)
1 parent a4eeaa7 commit 83282b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/weapon/weapons.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ static particle::ParticleEffectHandle convertLegacyPspewBuffer(const pspew_legac
680680

681681
switch (pspew_buffer.particle_spew_type) {
682682
case PSPEW_DEFAULT:
683-
position_vol = std::make_unique<particle::ConeVolume>(::util::UniformFloatRange(-PI_2, PI_2), 3.f * pspew_buffer.particle_spew_scale);
683+
position_vol = std::make_unique<particle::ConeVolume>(::util::UniformFloatRange(-PI_2, PI_2), powf(pspew_buffer.particle_spew_scale, 3.0f));
684684
direction = particle::ParticleEffect::ShapeDirection::REVERSE;
685685
break;
686686
case PSPEW_HELIX: {

0 commit comments

Comments
 (0)