mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
Full ground option in otml
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user