aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities.cpp')
-rw-r--r--src/entities.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index 6b9c3fe..e005df5 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -163,7 +163,7 @@ void PlayerSystem::receive(const KeyDownEvent &kde)
} else if (kc == getControl(4)) {
p->speed = .5;
} else if (kc == getControl(5)) {
- static int heyOhLetsGo = 0;
+ /*static int heyOhLetsGo = 0;
//edown = true;
@@ -179,7 +179,7 @@ void PlayerSystem::receive(const KeyDownEvent &kde)
// enable action ui
ui::action::enable();
- }
+ }*/
}
} else if (kc == SDLK_DELETE) {
game::endGame();
@@ -500,6 +500,8 @@ void Structures::createFromXML(XMLElement *e, World *w)
textureLoc = e->StrAttribute("texture");
+ insideTex = Texture::loadTexture(e->StrAttribute("insideTexture"));
+
spawn(static_cast<BUILD_SUB>(e->UnsignedAttribute("type")),
e->QueryFloatAttribute("spawnx", &spawnx) == XML_NO_ERROR ? spawnx : (randGet() % w->getTheWidth() / 2.0f),
100);