aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-06-07 07:39:47 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-06-07 07:39:47 -0400
commit5e4b825513aee44afc1342e5c390e80d3a1fdd15 (patch)
tree0e7f7205ae38f5cc4be509b44f5f5a4f64fe5d3c /src/world.cpp
parentf4632d58014dce0edc2d447dc934bae9cf957439 (diff)
parentaa9f53090bc0bd3421bf84930a9dc6b2223033f9 (diff)
merge fix
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/world.cpp b/src/world.cpp
index b096180..11bd671 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -718,7 +718,7 @@ void World::draw(Player *p)
std::vector<GLfloat> partVec(pss);
GLfloat *pIndex = &partVec[0];
-
+
for (const auto &p : particles) {
pc += 30;
if (pc > pss) {
@@ -2193,15 +2193,15 @@ loadWorldFromXMLNoSave(std::string path) {
vil = vil->NextSiblingElement();
}
- std::ifstream dat ((_currentXML + ".dat").data());
- if (dat.good()) {
- dat.close();
- tmp->load();
- }
-
if (!loadedLeft && !loadedRight) {
currentXML = _currentXML;
currentXMLRaw = _currentXMLRaw;
+
+ std::ifstream dat ((_currentXML + ".dat").data());
+ if (dat.good()) {
+ dat.close();
+ tmp->load();
+ }
} else {
delete _currentXMLDoc;
}