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>2010-11-28 23:48:11 +0000
committerStijn Buys <ingar@osirion.org>2010-11-28 23:48:11 +0000
commit4bae1c80e6a73173f5ec360dc05537ced3b68d32 (patch)
treec80aa9125e87ecca169fb390e122fcbcfb014f7c
parent4d1b23606ed58737db9ea4423f1ad0f3d1db2782 (diff)
Added nonsolid to core::Parser.
-rw-r--r--src/core/parser.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/parser.cc b/src/core/parser.cc
index 943cfb7..aa159bc 100644
--- a/src/core/parser.cc
+++ b/src/core/parser.cc
@@ -72,6 +72,14 @@ bool Parser::got_entity_key(filesystem::IniFile &inifile, core::Entity *entity)
entity->unset_flag(Entity::ShowOnMap);
return true;
+ } else if (inifile.got_key_bool("nonsolid", blnval)) {
+ if (blnval)
+ entity->set_flag(Entity::NonSolid);
+ else
+ entity->unset_flag(Entity::NonSolid);
+ return true;
+
+
} else if (inifile.got_key_float("angle", yaw)) {
if (yaw == model::ANGLEUP) {