From 35185452d7546ab56aa0040d7c2d68795c3f813f Mon Sep 17 00:00:00 2001 From: oroborus Date: Sun, 6 Apr 2008 17:25:52 +0000 Subject: - synchronizuju sa aj veci - preklady obsahuju aj font a velkost pismen - upravy aby to slo ( po stahnut tejto verzii sa hra musi odinstalovat a znova naonstalovat ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@43 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/screen_world.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/screen_world.c') 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 ); -- cgit v1.2.3