Fixed offset when rendering circles

This commit is contained in:
Maximilian Giller 2023-05-24 18:20:35 +02:00
parent 7f1530bdec
commit bbc74a8cef

View file

@ -10,7 +10,7 @@ void CircleObject::draw(sf::RenderWindow *window) const
{
sf::CircleShape circle(radius);
circle.setFillColor(color);
circle.setPosition(coordinates.isometric().x - radius / 2, coordinates.isometric().y - radius / 2);
circle.setPosition(coordinates.isometric().x - radius, coordinates.isometric().y - radius);
window->draw(circle);
}