aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 7329f6a..237d09a 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -150,9 +150,9 @@ namespace ui {
memset(ret,0,512);
size=strlen(str);
linc=0;
- sinc=2;
+ sinc=1;
}
- if(++sinc==3){
+ if(++sinc==2){
sinc=0;
strncpy(ret+linc,str+linc,1);
if(linc<size)linc++;
@@ -315,6 +315,8 @@ namespace ui {
if(SDL_KEY==SDLK_p)toggleBlack();
if(SDL_KEY==SDLK_F3)debug^=true;
if(SDL_KEY==SDLK_b & SDL_KEY==SDLK_F3)posFlag^=true;
+ if(SDL_KEY==SDLK_UP)handAngle++;
+ if(SDL_KEY==SDLK_DOWN)handAngle--;
break;
/*
KEYUP
@@ -327,6 +329,9 @@ namespace ui {
if(SDL_KEY==SDLK_LCTRL)player->speed = 1;
if(SDL_KEY==SDLK_h)player->health-=5;
if(SDL_KEY==SDLK_f)player->light ^= true;
+ if(SDL_KEY==SDLK_UP)handAngle+=0;
+ if(SDL_KEY==SDLK_DOWN)handAngle-=0;
+
break;
default:
break;