Fix pipe connectors' appearance by making pipes screenlocked.

This is not an ideal solution because as an outsider, pipes will look wrong on rotated stations, however there's no way to fix this properly right now as far as I can see soooo...
This commit is contained in:
Vera Aguilera Puerto
2021-10-17 12:06:06 +02:00
parent b6c1f31f17
commit 56a461988b
2 changed files with 2 additions and 4 deletions

View File

@@ -77,11 +77,8 @@ namespace Content.Client.Atmos.Visualizers
foreach (Layer layerKey in Enum.GetValues(typeof(Layer)))
{
var dir = ((PipeDirection) layerKey).RotatePipeDirection(xform.WorldRotation);
var layerVisible = state.ConnectedDirections.HasDirection(dir);
var layer = sprite.LayerMapGet(layerKey);
sprite.LayerSetVisible(layer, layerVisible && subfloor);
sprite.LayerSetVisible(layer, state.ConnectedDirections.HasDirection(((PipeDirection)layerKey)) && subfloor);
sprite.LayerSetColor(layer, color);
}
}