Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mapwidget.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapwidget.cc b/src/mapwidget.cc
index 32ec3a0..94bed61 100644
--- a/src/mapwidget.cc
+++ b/src/mapwidget.cc
@@ -46,8 +46,8 @@ void MapWidget::resizeChildren()
for (int i = 0; i < mapwidget_enties.size(); ++i) {
MapEntity * entity = mapwidget_enties.at(i);
int iconsize = 12;
- int x = width() / 2 + (int) (entity->location(0) * scale) - iconsize /2;
- int y = height() / 2 + (int)(entity->location(1) * scale) - iconsize /2;
+ int x = width() / 2 - (int) (entity->location(1) * scale) - iconsize /2;
+ int y = height() / 2 - (int)(entity->location(0) * scale) - iconsize /2;
entity->setGeometry(x, y, iconsize, iconsize);
//qDebug() << "Moving entity to " << x << " " << y;