Replace obsolete xform.ToMap() with xformSystem.ToMapCoordinates() (#30010)
* Get rid of a bunch of obsolete usages * position --------- Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
@@ -519,7 +519,7 @@ public sealed partial class ShuttleMapControl : BaseShuttleControl
|
||||
if (mapO is not ShuttleBeaconObject beacon)
|
||||
continue;
|
||||
|
||||
var beaconCoords = EntManager.GetCoordinates(beacon.Coordinates).ToMap(EntManager, _xformSystem);
|
||||
var beaconCoords = _xformSystem.ToMapCoordinates(EntManager.GetCoordinates(beacon.Coordinates));
|
||||
var position = Vector2.Transform(beaconCoords.Position, mapTransform);
|
||||
var localPos = ScalePosition(position with {Y = -position.Y});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user