(7f0d0fe11) Fixed specular maps going over characters, fixed levelobject draw order not working correctly in the level editor

This commit is contained in:
Joonas Rikkonen
2019-04-11 18:28:10 +03:00
parent 2f86991ce5
commit ddfdb3f4bf
2 changed files with 3 additions and 1 deletions
@@ -217,7 +217,7 @@ namespace Barotrauma
spriteBatch.Begin(SpriteSortMode.Deferred,
BlendState.AlphaBlend,
SamplerState.LinearClamp, DepthStencilState.Default, null, null,
SamplerState.LinearClamp, DepthStencilState.DepthRead, null, null,
cam.Transform);
if (backgroundSpriteManager != null) backgroundSpriteManager.DrawObjects(spriteBatch, cam, drawFront: true);
spriteBatch.End();