Skip to content

Commit

Permalink
fix #5135
Browse files Browse the repository at this point in the history
  • Loading branch information
rtri committed Mar 4, 2016
1 parent 96d0c18 commit 1c80cba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rts/Sim/Units/Scripts/UnitScript.cpp
Expand Up @@ -798,11 +798,11 @@ void CUnitScript::Explode(int piece, int flags)
const float partSat = projectileHandler->GetParticleSaturation();

int newFlags = 0;
newFlags |= (PF_Explode * ((flags & PF_Explode ) != 0));
newFlags |= (PF_Smoke * ((flags & PF_Smoke ) != 0) && partSat < 0.95f);
newFlags |= (PF_Fire * ((flags & PF_Fire ) != 0) && partSat < 0.95f);
newFlags |= (PF_NoCEGTrail * ((flags & PF_NoCEGTrail) != 0));
newFlags |= (PF_Recursive * ((flags & PF_Recursive ) != 0));
newFlags |= (PF_Explode * ((flags & PF_Explode ) != 0) );
newFlags |= (PF_Smoke * (((flags & PF_Smoke ) != 0) && partSat < 0.95f));
newFlags |= (PF_Fire * (((flags & PF_Fire ) != 0) && partSat < 0.95f));
newFlags |= (PF_NoCEGTrail * ((flags & PF_NoCEGTrail) != 0) );
newFlags |= (PF_Recursive * ((flags & PF_Recursive ) != 0) );

new CPieceProjectile(unit, pieces[piece], absPos, explSpeed, newFlags, 0.5f);
#endif
Expand Down

0 comments on commit 1c80cba

Please sign in to comment.