Fixed offset when rendering circles
This commit is contained in:
parent
7f1530bdec
commit
bbc74a8cef
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue