(e695ea73c) Changes to draw order logic. Fixes background lights bleeding through background walls that can only be resized on one axis.

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:50:14 +03:00
parent dedc9b5083
commit 5d9c61598b
6 changed files with 130 additions and 241 deletions
@@ -118,7 +118,7 @@ namespace Barotrauma
{
get
{
return !DrawDamageEffect;
return Sprite == null || SpriteDepth <= 0.5f;
}
}