1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 12:58:33 +01:00

fix sprite effects not actually being passed

This commit is contained in:
Ellpeck 2019-09-24 20:23:05 +02:00
parent 84e1958b4e
commit bf59b68489

View file

@ -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) {