diff options
author | Stijn Buys <ingar@osirion.org> | 2011-08-07 12:23:00 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-08-07 12:23:00 +0000 |
commit | 1e827da99645588e2add6d667c54d674add99890 (patch) | |
tree | 0b686ad9d68f281b962dc44a775c0b7bd514e617 /src/client | |
parent | df1589141df27f3b29eba2d44df1aa5b2abe3420 (diff) |
Update map window target info if the info timestamp has changed.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/mapwindow.cc | 7 |
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; |