From b5d824f36191e7ddc1c04afa0778347e1b02073e Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 8 Oct 2012 20:09:11 +0000 Subject: Do not draw hidden zones on the galaxy map. --- src/client/galaxymapwidget.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/galaxymapwidget.cc b/src/client/galaxymapwidget.cc index 508567a..be9a6e0 100644 --- a/src/client/galaxymapwidget.cc +++ b/src/client/galaxymapwidget.cc @@ -115,6 +115,10 @@ void GalaxyMapWidget::draw() for (core::Zone::Registry::iterator it = core::Zone::registry().begin(); it != core::Zone::registry().end(); it++) { zone = (*it).second; + + if (zone->has_flag(core::Zone::Hidden)) { + continue; + } bool draw_icon = true; @@ -131,7 +135,7 @@ void GalaxyMapWidget::draw() draw_icon = false; } } - // TODO draw a ship icon for current location + // TODO draw a ship icon for current location if (draw_icon) { gl::begin(gl::Quads); -- cgit v1.2.3