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>2009-02-24 19:13:27 +0000
committerStijn Buys <ingar@osirion.org>2009-02-24 19:13:27 +0000
commit53faab4c1d692fed7c7ecfedea57fc457bf61e80 (patch)
treed5dab7709dd4dc5409ab0e62920bb4d62790a90a /src/core/parser.cc
parent0e96454c70e56de5cefa38ab1b5dc46196238d07 (diff)
Replaced 'The Osirion Project' with 'Project::OSiRioN' in messages,
added g_collision cflag to facillitate future development, added ShowOnMap entity flag
Diffstat (limited to 'src/core/parser.cc')
-rw-r--r--src/core/parser.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/parser.cc b/src/core/parser.cc
index 1b35592..2cf0e39 100644
--- a/src/core/parser.cc
+++ b/src/core/parser.cc
@@ -18,6 +18,7 @@ bool Parser::got_entity_key(filesystem::IniFile &inifile, core::Entity *entity)
float direction;
float pitch;
float roll;
+ bool blnval;
if (inifile.got_key_string("shape", shapename)) {
@@ -47,6 +48,12 @@ bool Parser::got_entity_key(filesystem::IniFile &inifile, core::Entity *entity)
} else if (inifile.got_key_string("model", strval)) {
entity->set_modelname(strval);
return true;
+ } else if (inifile.got_key_bool("showonmap", blnval)) {
+ if (blnval)
+ entity->set_flag(Entity::ShowOnMap);
+ else
+ entity->unset_flag(Entity::ShowOnMap);
+ return true;
} else if (inifile.got_key_angle("direction", direction)) {
entity->axis().change_direction(direction);
return true;