projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a37fd4f
)
center camera on tux feet, so we get no jumps when tux ducks
author
Matthias Braun
<matze@braunis.de>
Thu, 8 May 2008 19:11:28 +0000
(19:11 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 8 May 2008 19:11:28 +0000
(19:11 +0000)
SVN-Revision: 5440
src/object/camera.cpp
patch
|
blob
|
history
diff --git
a/src/object/camera.cpp
b/src/object/camera.cpp
index
6833987
..
b9454ce
100644
(file)
--- a/
src/object/camera.cpp
+++ b/
src/object/camera.cpp
@@
-310,7
+310,8
@@
Camera::update_scroll_normal(float elapsed_time)
{
const CameraConfig& config = *(this->config);
Player* player = sector->player;
- const Vector& player_pos = player->get_bbox().get_middle();
+ const Vector& player_pos = Vector(player->get_bbox().get_middle().x,
+ player->get_bbox().get_bottom());
static Vector last_player_pos = player_pos;
Vector player_delta = player_pos - last_player_pos;
last_player_pos = player_pos;