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:
Regalis
2017-05-29 18:41:36 +03:00
parent 4a94f12c8b
commit 52daeea109
3 changed files with 10 additions and 14 deletions

View File

@@ -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);
}