summaryrefslogtreecommitdiff
path: root/src/screen_world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_world.c')
-rw-r--r--src/screen_world.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/screen_world.c b/src/screen_world.c
index 02536de..589161e 100644
--- a/src/screen_world.c
+++ b/src/screen_world.c
@@ -210,9 +210,27 @@ static void netAction(tux_t *tux, int action)
static void control_keyboard_right(tux_t *tux)
{
+/*
+ static my_time_t lastTime = 0;
+ my_time_t currentTime;
+*/
Uint8 *mapa;
mapa = SDL_GetKeyState(NULL);
+/*
+ if( lastTime == 0 )
+ {
+ lastTime = getMyTime();
+ }
+
+ currentTime = getMyTime();
+ if( currentTime - lastTime < 45 )
+ {
+ return;
+ }
+
+ lastTime = getMyTime();
+*/
assert( tux != NULL );
assert( mapa != NULL );