#2038 fixed - add shadow to crates on the ground

This commit is contained in:
Chris Forbes
2012-04-24 19:17:41 +12:00
parent f86332fd99
commit c4916bd997
4 changed files with 5 additions and 1 deletions

View File

@@ -115,7 +115,7 @@ namespace OpenRA.Mods.RA
Location = cell;
PxPosition = Util.CenterOfCell(cell);
var seq = self.World.GetTerrainInfo(cell).IsWater ? "water" : "idle";
var seq = self.World.GetTerrainInfo(cell).IsWater ? "water" : "land";
var rs = self.Trait<RenderSimple>();
if (seq != rs.anim.CurrentSequence.Name)
rs.anim.PlayRepeating(seq);