projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed jump behaviour: Tux will now jump even if the button was pressed (up to)...
[supertux.git]
/
src
/
object
/
tilemap.cpp
diff --git
a/src/object/tilemap.cpp
b/src/object/tilemap.cpp
index
d24caca
..
88def18
100644
(file)
--- a/
src/object/tilemap.cpp
+++ b/
src/object/tilemap.cpp
@@
-182,7
+182,8
@@
TileMap::draw(DrawingContext& context)
float trans_x = roundf(context.get_translation().x);
float trans_y = roundf(context.get_translation().y);
float trans_x = roundf(context.get_translation().x);
float trans_y = roundf(context.get_translation().y);
- context.set_translation(Vector(trans_x * speed_x, trans_y * speed_y));
+ context.set_translation(Vector(int(trans_x * speed_x),
+ int(trans_y * speed_y)));
/** if we don't round here, we'll have a 1 pixel gap on screen sometimes.
* I have no idea why */
/** if we don't round here, we'll have a 1 pixel gap on screen sometimes.
* I have no idea why */