From 9338fd5881e7d230d63ca5cea99bb4447190c7ea Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 8 Oct 2012 20:08:48 +0000 Subject: Read showonmap key from zone ini files. --- src/game/base/game.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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) { -- cgit v1.2.3