Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-02-19 00:25:05 +0000
committerStijn Buys <ingar@osirion.org>2012-02-19 00:25:05 +0000
commitf7530ccf9ce71efcb00cda56ee9d71e7765e6f79 (patch)
tree26b3fa4bf15170124ae9fcb9ce75bc7720dc2626
parent698f901a6d983f3f44b07f6560b1370850483fa0 (diff)
Corrected location of entities on the map.
-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;