aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index c0b5004..c59f9ee 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -631,7 +631,7 @@ DONE:
}
break;
case SDLK_LSHIFT:
- player->speed = debug ? 4 : 3;
+ player->speed = debug ? 4.0f : 3.0f;
break;
case SDLK_LCTRL:
player->speed = .5;
@@ -672,6 +672,8 @@ DONE:
player->right = false;
break;
case SDLK_LSHIFT:
+ player->speed = 1;
+ break;
case SDLK_LCTRL:
player->speed = 1;
break;