aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 09102a1..aed2f48 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -1441,7 +1441,6 @@ void InputSystem::update(entityx::EntityManager &en, entityx::EventManager &ev,
auto SCREEN_WIDTH = game::SCREEN_WIDTH;
auto SCREEN_HEIGHT = game::SCREEN_HEIGHT;
- auto indoor = dynamic_cast<IndoorWorld *>(currentWorld);
Mob *m; // ;lkjfdsa
Entity *ent; // used for interaction
@@ -1556,18 +1555,6 @@ void InputSystem::update(entityx::EntityManager &en, entityx::EventManager &ev,
if (m != nullptr)
m->ride(player);
break;
- case SDLK_i:
- if (indoor && indoor->isFloorAbove(player)) {
- player->loc.y += INDOOR_FLOOR_HEIGHT;
- player->ground = false;
- }
- break;
- case SDLK_k:
- if (indoor && indoor->isFloorBelow(player)) {
- player->loc.y -= INDOOR_FLOOR_HEIGHT;
- player->ground = false;
- }
- break;
case SDLK_l:
currentWorld->addLight({player->loc.x + SCREEN_WIDTH/2, player->loc.y}, 300.0f, {1.0f,1.0f,1.0f});
currentWorld->getLastLight().follow(player);