Fix a bug with tilemap positioning in runtime

This commit is contained in:
victorlevasseur
2014-08-22 11:55:06 +02:00
parent 2b6a51d052
commit ab1793626b

View File

@@ -187,7 +187,7 @@ bool RuntimeTileMapObject::Draw( sf::RenderTarget& window )
tileSet.GetTexture().setSmooth(false);
//Draw the tilemap
window.draw(vertexArray, sf::RenderStates(&tileSet.GetTexture()));
window.draw(vertexArray, sf::RenderStates(sf::BlendAlpha, transform, &tileSet.GetTexture(), NULL));
tileSet.GetTexture().setSmooth(wasSmooth);