Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-10-08 20:09:11 +0000
committerStijn Buys <ingar@osirion.org>2012-10-08 20:09:11 +0000
commitb5d824f36191e7ddc1c04afa0778347e1b02073e (patch)
tree48a0b4f662f69a2e2015572ea074e6a20c1e54b3 /src/client/galaxymapwidget.cc
parent9338fd5881e7d230d63ca5cea99bb4447190c7ea (diff)
Do not draw hidden zones on the galaxy map.
Diffstat (limited to 'src/client/galaxymapwidget.cc')
-rw-r--r--src/client/galaxymapwidget.cc6
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);