aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-10-07 08:40:43 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-10-07 08:40:43 -0400
commit40efc2db79c205d122ca9557c9cd0d5679a37446 (patch)
treed6a227b598ca890de6ecf566a2c6dd2350d17e74 /src/ui.cpp
parentf28fda996331de5dac8fc2f20ea0898527239fe5 (diff)
parentaad308a8938135a9fd2614f2cf47774918539847 (diff)
world improvement
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index cd5de15..e4af3e2 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -214,6 +214,7 @@ namespace ui {
if(SDL_KEY==SDLK_i)currentWorld=currentWorld->goWorldBack(player); // Go back a layer if possible
if(SDL_KEY==SDLK_k)currentWorld=currentWorld->goWorldFront(player); // Go forward a layer if possible
if(SDL_KEY==SDLK_LSHIFT)player->speed = 3; // Sprint
+ if(SDL_KEY==SDLK_LCTRL)player->speed = .5;
}
if(SDL_KEY==SDLK_F3)debug^=true;
break;
@@ -225,7 +226,7 @@ namespace ui {
if(SDL_KEY==SDLK_d){right=false;}
if(!left&&!right)player->vel.x=0;
if(SDL_KEY==SDLK_LSHIFT)player->speed = 1;
-
+ if(SDL_KEY==SDLK_LCTRL)player->speed = 1;
break;
default:
break;