aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 75bc5ee..9b3cdff 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -146,6 +146,7 @@ namespace ui {
player->ground=false;
player->loc.y-=HLINE*1.5;
}
+ if(SDL_KEY==SDLK_w)currentWorld=currentWorld->goInsideStructure(player);
if(SDL_KEY==SDLK_SPACE){ // Jump
if(player->ground){
player->vel.y=.25;