From: Ricardo Cruz Date: Thu, 22 Apr 2004 11:30:53 +0000 (+0000) Subject: Just made the intro's Tux to honour the keys chosen by the user. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=aadeec2cf6fc7a7f20d1ca43ac87e972b8e1840e;p=supertux.git Just made the intro's Tux to honour the keys chosen by the user. SVN-Revision: 628 --- diff --git a/src/title.cpp b/src/title.cpp index 83151af3e..ac89c3503 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -189,14 +189,14 @@ void draw_demo(GameSession* session, double frame_ratio) } global_frame_counter++; - tux->key_event(SDLK_RIGHT,DOWN); + tux->key_event((SDLKey) keymap.right,DOWN); if(random_timer.check()) { if(walking) - tux->key_event(SDLK_UP,UP); + tux->key_event((SDLKey) keymap.jump,UP); else - tux->key_event(SDLK_UP,DOWN); + tux->key_event((SDLKey) keymap.jump,DOWN); } else {