mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 14:52:35 +02:00
PlacementManager CurrentEraserMouseCoordinates fix (#5576)
This commit is contained in:
@@ -536,13 +536,14 @@ namespace Robust.Client.Placement
|
||||
}
|
||||
else
|
||||
{
|
||||
var mousePosition = EyeManager.PixelToMap(InputManager.MouseScreenPosition);
|
||||
var map = EntityManager.GetComponent<TransformComponent>(ent).MapID;
|
||||
if (map == MapId.Nullspace || !Eraser)
|
||||
if (map == MapId.Nullspace || !Eraser || mousePosition.MapId == MapId.Nullspace)
|
||||
{
|
||||
coordinates = new EntityCoordinates();
|
||||
return false;
|
||||
}
|
||||
coordinates = XformSystem.ToCoordinates(ent, EyeManager.PixelToMap(InputManager.MouseScreenPosition));
|
||||
coordinates = XformSystem.ToCoordinates(mousePosition);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user