Fixed limb lightsources not rotating with the limb

This commit is contained in:
Joonas Rikkonen
2017-12-02 19:14:49 +02:00
parent 3bcd128ac7
commit 20664c08fd

View File

@@ -45,6 +45,7 @@ namespace Barotrauma
if (LightSource != null)
{
LightSource.ParentSub = body.Submarine;
LightSource.Rotation = (dir == Direction.Right) ? body.Rotation : body.Rotation - MathHelper.Pi;
}
}