From 4f838cdf582f0ace6d7de8cb376dfce7100fbea3 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 18 Oct 2016 20:26:12 -0400 Subject: indoor world work --- src/entities.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/entities.cpp') 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(e->UnsignedAttribute("type")), e->QueryFloatAttribute("spawnx", &spawnx) == XML_NO_ERROR ? spawnx : (randGet() % w->getTheWidth() / 2.0f), 100); -- cgit v1.2.3