aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-01-19 16:20:13 -0500
committerClyne Sullivan <tullivan99@gmail.com>2017-01-19 16:20:13 -0500
commit59edd60ebec61bf24dd27063f85bcd049fd0af13 (patch)
tree902bb77c940134d20e35dfcb556b8e755bc373ef /src/world.cpp
parent36ed75a7749b81fab69f66b9ef8bbf0d18489f73 (diff)
killed common, more inventory, other random stuff
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 1d29bfe..4f2f99c 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -12,6 +12,12 @@
#include <chrono>
using namespace std::literals::chrono_literals;
+#include <common.hpp>
+#include <debug.hpp>
+#include <error.hpp>
+#include <fileio.hpp>
+#include <vector3.hpp>
+
// local game headers
#include <ui.hpp>
#include <gametime.hpp>
@@ -369,7 +375,8 @@ void WorldSystem::load(const std::string& file)
entity.assign<Physics>(g);
} else if (tname == "Name") {
- entity.assign<Name>(coalesce(wxml->Attribute("name"), abcd->Attribute("value")));
+ auto name = wxml->Attribute("name");
+ entity.assign<Name>( name != nullptr ? name : abcd->Attribute("value"));
} else if (tname == "Dialog") {
entity.assign<Dialog>((wxml->BoolAttribute("hasDialog") ? 0 : 9999));
} else if (tname == "Grounded") {