(dfb5c5dec) Option to determine the orientation of a wall in xml (if omitted, the orientation is determined automatically based on the dimensions of the wall instance, just like before).

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:37:21 +03:00
parent 5bd1bc4ae3
commit c86225fd82
4 changed files with 83 additions and 1 deletions
@@ -300,7 +300,11 @@ namespace Barotrauma
TextureScale = sp.TextureScale;
#endif
spriteColor = prefab.SpriteColor;
if (ResizeHorizontal && !ResizeVertical)
if (sp.IsHorizontal.HasValue)
{
IsHorizontal = sp.IsHorizontal.Value;
}
else if (ResizeHorizontal && !ResizeVertical)
{
IsHorizontal = true;
}