diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-06-02 07:46:42 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-06-02 07:46:42 -0400 |
commit | aa9f53090bc0bd3421bf84930a9dc6b2223033f9 (patch) | |
tree | bf52436dc5a88cc94ca939f83652901c56c6fe2e /src | |
parent | 2e6369f4dbe2b49a3cb8bec3bacd6559c9733a55 (diff) |
windows builddd
Diffstat (limited to 'src')
-rw-r--r-- | src/entities.cpp | 4 | ||||
-rw-r--r-- | src/ui.cpp | 2 | ||||
-rw-r--r-- | src/ui_action.cpp | 2 | ||||
-rw-r--r-- | src/world.cpp | 20 |
4 files changed, 14 insertions, 14 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 @@ -1152,7 +1152,7 @@ EXIT: toggleBlackFast(); player->canMove = true; }; - + while(SDL_PollEvent(&e)) { switch(e.type) { diff --git a/src/ui_action.cpp b/src/ui_action.cpp index ebdc705..9029907 100644 --- a/src/ui_action.cpp +++ b/src/ui_action.cpp @@ -124,7 +124,7 @@ void actionAttack(void) ui::toggleWhiteFast(); } } else { - ui::dialogBox(player->name, "", false, "%s doesn't appear to be in the mood for fighting...", m->name); + ui::dialogBox(player->name, "", false, "%s doesn't appear to be in the mood for fighting...", m->name.c_str()); } ACTION_EPILOUGE; diff --git a/src/world.cpp b/src/world.cpp index 5ab20ed..698db7c 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -712,12 +712,12 @@ void World::draw(Player *p) glEnableVertexAttribArray(worldShader_attribute_coord); glEnableVertexAttribArray(worldShader_attribute_tex); - uint ps = particles.size(); + uint ps = 0;particles.size(); uint pss = ps * 6 * 5; - uint pc = 0; + //uint pc = 0; std::vector<GLfloat> partVec(pss); - GLfloat *pIndex = &partVec[0]; + /*GLfloat *pIndex = &partVec[0]; for (const auto &p : particles) { pc += 30; @@ -727,7 +727,7 @@ void World::draw(Player *p) break; } p.draw(pIndex); - } + }*/ glVertexAttribPointer(worldShader_attribute_coord, 3, GL_FLOAT, GL_FALSE, 5 * sizeof(GLfloat), &partVec[0]); glVertexAttribPointer(worldShader_attribute_tex, 2, GL_FLOAT, GL_FALSE, 5 * sizeof(GLfloat), &partVec[3]); @@ -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; } |