Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/mapwindow.cc')
-rw-r--r--src/client/mapwindow.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/mapwindow.cc b/src/client/mapwindow.cc
index 9744062..f1de585 100644
--- a/src/client/mapwindow.cc
+++ b/src/client/mapwindow.cc
@@ -145,6 +145,13 @@ void MapWindow::draw()
mapwindow_mapwidget->set_target(mapwindow_target);
mapwindow_maplabel->set_text(core::localplayer()->zone()->name());
+ if (mapwindow_target && mapwindow_target->info()) {
+ if (mapwindow_infotimestamp != mapwindow_target->info()->timestamp()) {
+ // update info
+ set_target(mapwindow_target);
+ }
+ }
+
/*
const float fontmargin = mapwindow_targetlabel->font()->height();
const float s = ui::UI::elementsize.width() * 1.5f;