aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-11-06 08:48:46 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-11-06 08:48:46 -0500
commite257d84daee9d474a944588214fbdafed9d9e983 (patch)
treefcbd3d8e7cbaad994c0ab20793b3ae86903b7451 /src/ui.cpp
parentcb55d6e72ae1f48622ffc2a36d7bdb3719355afe (diff)
Fixed some handAngle bugs, and raised the world height
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;