From 00f633afb62ed6914205639b44dcdaf839a2c2f7 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 27 Jun 2016 21:06:31 -0400 Subject: redid trees, fixed indoors? --- include/entities.hpp | 2 +- include/texture.hpp | 4 ++-- include/world.hpp | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/entities.hpp b/include/entities.hpp index 2523364..76b6fa8 100644 --- a/include/entities.hpp +++ b/include/entities.hpp @@ -325,7 +325,7 @@ public: class Structures : public Entity { public: BUILD_SUB bsubtype; - World *inWorld; + World *inWorld, *insideWorld; std::string inside; std::string textureLoc; diff --git a/include/texture.hpp b/include/texture.hpp index 0ee3e2c..c301af1 100644 --- a/include/texture.hpp +++ b/include/texture.hpp @@ -47,9 +47,9 @@ public: position = std::begin(textures); } TextureIterator(const std::vector &l) { - for (const auto &s : l) { + for (const auto &s : l) textures.emplace_back(Texture::loadTexture(s), s); - } + position = std::begin(textures); } void operator++(int) noexcept { diff --git a/include/world.hpp b/include/world.hpp index 34a597d..6a97daa 100644 --- a/include/world.hpp +++ b/include/world.hpp @@ -566,6 +566,7 @@ World *loadWorldFromXML(std::string path); * previous world if one was loaded. */ World *loadWorldFromXMLNoSave(std::string path); +World *loadWorldFromXMLNoTakeover(std::string path); /** * Loads a world using a pointer to the current world (used for loading adjacent -- cgit v1.2.3