projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d99522
)
Fixed level end position bug. The FIXME: Under.... bug doesn't hang up in a loop...
author
Tobias Gläßer
<tobi.web@gmx.de>
Tue, 3 Feb 2004 12:32:49 +0000
(12:32 +0000)
committer
Tobias Gläßer
<tobi.web@gmx.de>
Tue, 3 Feb 2004 12:32:49 +0000
(12:32 +0000)
SVN-Revision: 118
src/player.c
patch
|
blob
|
history
diff --git
a/src/player.c
b/src/player.c
index
bacbe30
..
b10a334
100644
(file)
--- a/
src/player.c
+++ b/
src/player.c
@@
-189,10
+189,13
@@
void player_action(player_type* pplayer)
{
++debug_int;
if(debug_int > 32)
+ {
DEBUG_MSG("FIXME - UNDER certain circumstances I'm hanging in a loop here!");
- /*the circumstances are:
+
/*the circumstances are:
issolid() is true and base.ym == 0
use of floating point varibles for base stuff*/
+ break;
+ }
if (pplayer->base.ym < 0)
pplayer->base.y++;
else if (pplayer->base.ym > 0)
@@
-477,7
+480,7
@@
void player_action(player_type* pplayer)
/* End of level? */
- if (pplayer->base.x>= endpos && endpos != 0)
+ if (pplayer->base.x
- scroll_x
>= endpos && endpos != 0)
{
next_level = 1;
}