Full ground option in otml

This commit is contained in:
Henrique Santiago 2013-02-07 02:19:19 -02:00
parent 7f918a12a2
commit 2f7a06e93e
1 changed files with 6 additions and 0 deletions

View File

@ -150,6 +150,12 @@ void ThingType::unserializeOtml(const OTMLNodePtr& node)
m_attribs.set(ThingAttrNotPreWalkable, node2->value<bool>()); m_attribs.set(ThingAttrNotPreWalkable, node2->value<bool>());
else if(node2->tag() == "image") else if(node2->tag() == "image")
m_customImage = node2->value(); m_customImage = node2->value();
else if(node2->tag() == "full-ground") {
if(node2->value<bool>())
m_attribs.set(ThingAttrFullGround, true);
else
m_attribs.remove(ThingAttrFullGround);
}
} }
} }