diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-19 00:25:05 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-19 00:25:05 +0000 |
commit | f7530ccf9ce71efcb00cda56ee9d71e7765e6f79 (patch) | |
tree | 26b3fa4bf15170124ae9fcb9ce75bc7720dc2626 /src | |
parent | 698f901a6d983f3f44b07f6560b1370850483fa0 (diff) |
Corrected location of entities on the map.
Diffstat (limited to 'src')
-rw-r--r-- | src/mapwidget.cc | 4 |
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; |