Fixes an issue where entities wouldn't be removed when a build got a
"Failure" score.
This commit is contained in:
Sam 2016-06-01 15:41:02 +01:00
parent 4c4363ffaa
commit b08c2c9467

View File

@ -429,8 +429,12 @@ public class Build extends SoloGame
} }
else if (!hasDecentVote) else if (!hasDecentVote)
{ {
for(Entity entity : _viewData.Entities)
{
entity.remove();
}
Manager.GetExplosion().BlockExplosion(_viewData.Blocks, _viewData.Spawn, false); Manager.GetExplosion().BlockExplosion(_viewData.Blocks, _viewData.Spawn, false);
//Effects //Effects
_viewData.Spawn.getWorld().playSound(_viewData.Spawn, Sound.EXPLODE, 3f, 1f); _viewData.Spawn.getWorld().playSound(_viewData.Spawn, Sound.EXPLODE, 3f, 1f);
UtilParticle.PlayParticle(ParticleType.HUGE_EXPLOSION, _viewData.Spawn, 4f, 4f, 4f, 0, 10, UtilParticle.PlayParticle(ParticleType.HUGE_EXPLOSION, _viewData.Spawn, 4f, 4f, 4f, 0, 10,