Change IRenderable.WithPos -> OffsetBy.
This is more appropriate for the actual use cases. Fixes #3621.
This commit is contained in:
@@ -247,7 +247,7 @@ namespace OpenRA.Mods.RA
|
||||
var offset = (xy - sourceLocation).ToWVec();
|
||||
if (manager.self.Owner.Shroud.IsTargetable(unit))
|
||||
foreach (var r in unit.Render(wr))
|
||||
r.WithPos(r.Pos + offset).Render(wr);
|
||||
r.OffsetBy(offset).Render(wr);
|
||||
}
|
||||
|
||||
// Unit tiles
|
||||
|
||||
Reference in New Issue
Block a user