Adjust GetImage plumbing in preparation for race-specific sequences.
This commit is contained in:
@@ -152,7 +152,8 @@ namespace OpenRA.Mods.D2k.Traits
|
||||
isCarrying = true;
|
||||
|
||||
// Create a new animation for our carryable unit
|
||||
anim = new Animation(self.World, RenderSprites.GetImage(carryable.Info), RenderSprites.MakeFacingFunc(self));
|
||||
var rs = carryable.Trait<RenderSprites>();
|
||||
anim = new Animation(self.World, rs.GetImage(carryable), RenderSprites.MakeFacingFunc(self));
|
||||
anim.PlayRepeating("idle");
|
||||
anim.IsDecoration = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user