aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/entities.cpp4
-rw-r--r--src/world.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index 2d9de76..f59b462 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -133,10 +133,10 @@ void Entity::die(void)
alive = false;
health = 0;
- if (xmle) {
+ /*if (xmle) {
xmle->SetAttribute("alive", false);
currentXMLDoc.SaveFile(currentXML.c_str(), false);
- }
+ }*/
}
bool Entity::isAlive(void) const
diff --git a/src/world.cpp b/src/world.cpp
index 5ab20ed..b096180 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) {
@@ -1487,14 +1487,14 @@ addObject(std::string in, std::string p, float x, float y)
void World::
addParticle(float x, float y, float w, float h, float vx, float vy, Color color, int d)
{
- particles.emplace_back(x, y, w, h, vx, vy, color, d);
+ particles.push_back(Particles(x, y, w, h, vx, vy, color, d));
particles.back().canMove = true;
}
void World::
addParticle(float x, float y, float w, float h, float vx, float vy, Color color, int d, unsigned char flags)
{
- particles.emplace_back(x, y, w, h, vx, vy, color, d);
+ particles.push_back(Particles(x, y, w, h, vx, vy, color, d));
particles.back().canMove = true;
particles.back().gravity = flags & (1 << 0);
particles.back().bounce = flags & (1 << 1);