diff options
author | Stijn Buys <ingar@osirion.org> | 2012-10-08 20:08:48 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-10-08 20:08:48 +0000 |
commit | 9338fd5881e7d230d63ca5cea99bb4447190c7ea (patch) | |
tree | e06df8c840b76998499dd62d549803e949dd8d78 /src/game/base | |
parent | 14ea3d9d037175d4d5326ac9c83fe69ddcd0d9c4 (diff) |
Read showonmap key from zone ini files.
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/game.cc | 7 |
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) { |