projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cab1053
)
Just made the intro's Tux to honour the keys chosen by the user.
author
Ricardo Cruz
<rick2@aeiou.pt>
Thu, 22 Apr 2004 11:30:53 +0000
(11:30 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Thu, 22 Apr 2004 11:30:53 +0000
(11:30 +0000)
SVN-Revision: 628
src/title.cpp
patch
|
blob
|
history
diff --git
a/src/title.cpp
b/src/title.cpp
index
83151af
..
ac89c35
100644
(file)
--- 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
{