projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
210dc49
)
src/supertux/sector.cpp: Use shift delta when checking the position of non-sloped...
author
Florian Forster
<supertux@octo.it>
Sun, 31 Jan 2010 22:44:17 +0000
(22:44 +0000)
committer
Florian Forster
<supertux@octo.it>
Sun, 31 Jan 2010 22:44:17 +0000
(22:44 +0000)
This solves the "Tux falls through unisolid moving platforms" bug observed by
Mathnerd314.
SVN-Revision: 6302
src/supertux/sector.cpp
patch
|
blob
|
history
diff --git
a/src/supertux/sector.cpp
b/src/supertux/sector.cpp
index
27bb939
..
a4f4c47
100644
(file)
--- a/
src/supertux/sector.cpp
+++ b/
src/supertux/sector.cpp
@@
-1101,7
+1101,7
@@
int check_position_unisolid (const Rectf& obj_bbox,
/* If this is not a slope, this is - again - easy */
if ((tile->getAttributes() & Tile::SLOPE) == 0)
{
- if (
obj_bbox.get_bottom (
) <= tile_bbox.get_top ())
+ if (
(obj_bbox.get_bottom () - SHIFT_DELTA
) <= tile_bbox.get_top ())
return POS_SOLID;
else
return POS_NON_SOLID;