diff options
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index 60f49ee..e156ee2 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -320,6 +320,8 @@ Structures::~Structures() { } +extern std::string currentXMLRaw; + void Structures::createFromXML(XMLElement *e, World *w) { float spawnx; @@ -331,6 +333,12 @@ void Structures::createFromXML(XMLElement *e, World *w) inWorld = w; inside = e->StrAttribute("inside"); + + // edge + if (!inside.empty()) { + insideWorld = loadWorldFromXMLNoTakeover(inside); + } + textureLoc = e->StrAttribute("texture"); spawn(static_cast<BUILD_SUB>(e->UnsignedAttribute("type")), |