Skip to content

Commit

Permalink
Fix #4833
Browse files Browse the repository at this point in the history
deleting the synced projectile was originally based on when there are no
more unsynced subparticles, which led to desyncs if they weren't created
due to hitting the limit
This was changed to deleting the projectile after ttl+ParticleTTL
  • Loading branch information
ashdnazg committed Jun 25, 2015
1 parent 6603056 commit ed20e0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rts/Sim/Projectiles/FireProjectile.cpp
Expand Up @@ -138,9 +138,7 @@ void CFireProjectile::Update()
pi->posDif*=0.9f;
}

if (subParticles.empty() && (ttl <= 0)) {
deleteMe = true;
}
deleteMe |= ttl <= -particleTime;
}

void CFireProjectile::Draw()
Expand Down

0 comments on commit ed20e0c

Please sign in to comment.