projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b3f2ce
)
Refined "Air-arrow" to indicate y-position as well and merged it into 0.3.0
author
Christoph Sommer
<mail@christoph-sommer.de>
Wed, 1 Nov 2006 03:30:33 +0000
(
03:30
+0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Wed, 1 Nov 2006 03:30:33 +0000
(
03:30
+0000)
SVN-Revision: 4430
src/object/player.cpp
patch
|
blob
|
history
diff --git
a/src/object/player.cpp
b/src/object/player.cpp
index
de9d24c
..
6e9ee7c
100644
(file)
--- a/
src/object/player.cpp
+++ b/
src/object/player.cpp
@@
-808,6
+808,7
@@
Player::draw(DrawingContext& context)
if (Sector::current() && Sector::current()->camera && (get_bbox().p2.y + 16 < Sector::current()->camera->get_translation().y)) {
float px = get_pos().x + (get_bbox().p2.x - get_bbox().p1.x - airarrow.get()->get_width()) / 2;
float py = Sector::current()->camera->get_translation().y;
+ py += std::min(((py - (get_bbox().p2.y + 16)) / 4), 16.0f);
context.draw_surface(airarrow.get(), Vector(px, py), LAYER_HUD - 1);
}