From 1e827da99645588e2add6d667c54d674add99890 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 7 Aug 2011 12:23:00 +0000 Subject: Update map window target info if the info timestamp has changed. --- src/client/mapwindow.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/client') 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; -- cgit v1.2.3