From bf59b68489b6f958c01646b98fe960073704a0a3 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 24 Sep 2019 20:23:05 +0200 Subject: [PATCH] fix sprite effects not actually being passed --- MLEM/Textures/TextureRegion.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM/Textures/TextureRegion.cs b/MLEM/Textures/TextureRegion.cs index dc134fa..d02b34e 100644 --- a/MLEM/Textures/TextureRegion.cs +++ b/MLEM/Textures/TextureRegion.cs @@ -37,7 +37,7 @@ namespace MLEM.Textures { } public static void Draw(this SpriteBatch batch, TextureRegion texture, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth) { - batch.Draw(texture, position, color, rotation, origin, new Vector2(scale), SpriteEffects.None, layerDepth); + batch.Draw(texture, position, color, rotation, origin, new Vector2(scale), effects, layerDepth); } public static void Draw(this SpriteBatch batch, TextureRegion texture, Rectangle destinationRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth) {