Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/base/game.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc
index c116b8b..3fbcbb0 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -1145,6 +1145,7 @@ bool Game::load_zone(core::Zone *zone)
long l;
std::string strval;
+ math::Vector3f vectorval;
while (zoneini.getline()) {
@@ -1264,6 +1265,18 @@ bool Game::load_zone(core::Zone *zone)
} else if (zoneini.got_key_color("ambient", color)) {
zone->set_ambient_color(color);
continue;
+ } else if (zoneini.got_key_vector3f("location", vectorval)) {
+ zone->set_location(vectorval);
+ continue;
+ } else if (zoneini.got_key_string("info", strval)) {
+ core::Info *info = core::Info::find(zone->info());
+ if (!info) {
+ std::string labelstr(zone->label());
+ info = new core::Info(core::Zone::infotype(), labelstr.c_str());
+ zone->set_info(info);
+ }
+ info->add_text(strval);
+ continue;
} else {
zoneini.unknown_key();
}