From 4bae1c80e6a73173f5ec360dc05537ced3b68d32 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Nov 2010 23:48:11 +0000 Subject: Added nonsolid to core::Parser. --- src/core/parser.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3