string AcceptsSmudgeType replaces boolean AcceptSmudge
because Dune 2000 has different craters for rock and sand
This commit is contained in:
committed by
Chris Forbes
parent
b61e4a6083
commit
d3915ad291
@@ -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)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user