Unstable v0.10.6.0 (October 13th 2020)
This commit is contained in:
@@ -1658,10 +1658,14 @@ namespace Barotrauma
|
||||
|
||||
public override void FlipX(bool relativeToSub)
|
||||
{
|
||||
if (!Prefab.CanFlipX) { return; }
|
||||
|
||||
//call the base method even if the item can't flip, to handle repositioning when flipping the whole sub
|
||||
base.FlipX(relativeToSub);
|
||||
|
||||
if (!Prefab.CanFlipX)
|
||||
{
|
||||
flippedX = false;
|
||||
return;
|
||||
}
|
||||
#if CLIENT
|
||||
if (Prefab.CanSpriteFlipX)
|
||||
{
|
||||
@@ -1677,10 +1681,15 @@ namespace Barotrauma
|
||||
|
||||
public override void FlipY(bool relativeToSub)
|
||||
{
|
||||
if (!Prefab.CanFlipY) { return; }
|
||||
|
||||
//call the base method even if the item can't flip, to handle repositioning when flipping the whole sub
|
||||
base.FlipY(relativeToSub);
|
||||
|
||||
if (!Prefab.CanFlipY)
|
||||
{
|
||||
flippedY = false;
|
||||
return;
|
||||
}
|
||||
|
||||
#if CLIENT
|
||||
if (Prefab.CanSpriteFlipY)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user