Fixed limb lightsource flipping (or actually disabled flipping altogether and just made the lightsource follow the rotation of the limb)
This commit is contained in:
@@ -645,10 +645,10 @@ namespace Barotrauma
|
||||
|
||||
limb.Dir = Dir;
|
||||
|
||||
if (limb.LightSource != null)
|
||||
/*if (limb.LightSource != null)
|
||||
{
|
||||
limb.LightSource.FlipX();
|
||||
}
|
||||
}*/
|
||||
|
||||
if (limb.pullJoint != null)
|
||||
{
|
||||
@@ -943,7 +943,7 @@ namespace Barotrauma
|
||||
|
||||
if (limb.LightSource != null)
|
||||
{
|
||||
limb.LightSource.Rotation = limb.Rotation;
|
||||
limb.LightSource.Rotation = dir == Direction.Right ? limb.body.DrawRotation : limb.body.DrawRotation - MathHelper.Pi;
|
||||
}
|
||||
limb.Update(deltaTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user