fixes for ARTY and crate

This commit is contained in:
Bob
2010-02-11 14:09:43 +13:00
parent c9b1b25ba8
commit 4eda5dc9a9
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRa.Traits.Activities
var desiredFacing = Util.GetFacing((Target.Location - self.Location).ToFloat2(), 0);
var renderUnit = self.traits.GetOrDefault<RenderUnit>();
var numDirs = (renderUnit != null)
? renderUnit.anim.CurrentSequence.Length : 8;
? renderUnit.anim.CurrentSequence.Facings : 8;
if (Util.QuantizeFacing(unit.Facing, numDirs)
!= Util.QuantizeFacing(desiredFacing, numDirs))

View File

@@ -831,7 +831,7 @@
<sequence name="idle" start="0" length="16" />
</unit>
<unit name="crate">
<sequence name="idle" start="0" length="16" src="wcrate" />
<sequence name="idle" start="0" length="1" src="wcrate" />
</unit>
<unit name="crate-effects">
<sequence name="speed" start="0" length="*" src="speed" />