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:08:48 +0000
committerStijn Buys <ingar@osirion.org>2012-10-08 20:08:48 +0000
commit9338fd5881e7d230d63ca5cea99bb4447190c7ea (patch)
treee06df8c840b76998499dd62d549803e949dd8d78 /src/game/base
parent14ea3d9d037175d4d5326ac9c83fe69ddcd0d9c4 (diff)
Read showonmap key from zone ini files.
Diffstat (limited to 'src/game/base')
-rw-r--r--src/game/base/game.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc
index 93145f7..c4e354c 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -1268,6 +1268,13 @@ bool Game::load_zone(core::Zone *zone)
} else if (zoneini.got_key_vector3f("location", vectorval)) {
zone->set_location(vectorval);
continue;
+ } else if (zoneini.got_key_bool("showonmap", b)) {
+ if (b) {
+ zone->unset_flag(core::Zone::Hidden);
+ } else {
+ zone->set_flag(core::Zone::Hidden);
+ }
+ continue;
} else if (zoneini.got_key_string("info", strval)) {
core::Info *info = core::Info::find(zone->info());
if (!info) {