projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8584b0
)
- fix for title-demo going weird
author
Ingo Ruhnke
<grumbel@gmx.de>
Mon, 26 Apr 2004 13:00:56 +0000
(13:00 +0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Mon, 26 Apr 2004 13:00:56 +0000
(13:00 +0000)
SVN-Revision: 742
src/title.cpp
patch
|
blob
|
history
diff --git
a/src/title.cpp
b/src/title.cpp
index
96dca72
..
8ac8771
100644
(file)
--- a/
src/title.cpp
+++ b/
src/title.cpp
@@
-253,6
+253,10
@@
void title(void)
Menu::set_current(main_menu);
while (Menu::current())
{
+ // if we spent to much time on a menu entry
+ if( (update_time - last_update_time) > 1000)
+ update_time = last_update_time = st_get_ticks();
+
// Calculate the movement-factor
double frame_ratio = ((double)(update_time-last_update_time))/((double)FRAME_RATE);
if(frame_ratio > 1.5) /* Quick hack to correct the unprecise CPU clocks a little bit. */