Just made the intro's Tux to honour the keys chosen by the user.
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 22 Apr 2004 11:30:53 +0000 (11:30 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 22 Apr 2004 11:30:53 +0000 (11:30 +0000)
SVN-Revision: 628

src/title.cpp

index 83151af..ac89c35 100644 (file)
@@ -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
     {