Full ground option in otml
This commit is contained in:
parent
7f918a12a2
commit
2f7a06e93e
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue