string AcceptsSmudgeType replaces boolean AcceptSmudge

because Dune 2000 has different craters for rock and sand
This commit is contained in:
Matthias Mailänder
2012-06-25 21:16:31 +02:00
committed by Chris Forbes
parent b61e4a6083
commit d3915ad291
18 changed files with 135 additions and 182 deletions

View File

@@ -54,9 +54,6 @@ namespace OpenRA.Mods.RA
public void AddSmudge(CPos loc)
{
if (!world.GetTerrainInfo(loc).AcceptSmudge)
return;
if (Game.CosmeticRandom.Next(0,100) <= Info.SmokePercentage)
world.AddFrameEndTask(w => w.Add(new Smoke(w, Traits.Util.CenterOfCell(loc), Info.SmokeType)));