fixes for ARTY and crate
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user