projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yeti summons snowballs now
[supertux.git]
/
src
/
object
/
player.cpp
diff --git
a/src/object/player.cpp
b/src/object/player.cpp
index
0fcc752
..
92cd588
100644
(file)
--- a/
src/object/player.cpp
+++ b/
src/object/player.cpp
@@
-974,10
+974,10
@@
Player::check_bounds(Camera* camera)
bbox.set_pos(Vector(camera->get_translation().x, get_pos().y));
adjust = true;
}
bbox.set_pos(Vector(camera->get_translation().x, get_pos().y));
adjust = true;
}
- if(get_pos().x >= camera->get_translation().x +
screen->w
- bbox.get_width())
+ if(get_pos().x >= camera->get_translation().x +
SCREEN_WIDTH
- bbox.get_width())
{
bbox.set_pos(Vector(
{
bbox.set_pos(Vector(
- camera->get_translation().x +
screen->w
- bbox.get_width(),
+ camera->get_translation().x +
SCREEN_WIDTH
- bbox.get_width(),
get_pos().y));
adjust = true;
}
get_pos().y));
adjust = true;
}