diff options
author | Stijn Buys <ingar@osirion.org> | 2012-10-08 20:09:11 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-10-08 20:09:11 +0000 |
commit | b5d824f36191e7ddc1c04afa0778347e1b02073e (patch) | |
tree | 48a0b4f662f69a2e2015572ea074e6a20c1e54b3 | |
parent | 9338fd5881e7d230d63ca5cea99bb4447190c7ea (diff) |
Do not draw hidden zones on the galaxy map.
-rw-r--r-- | src/client/galaxymapwidget.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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); |