X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Fplayer.cpp;h=8367bd6c43db29fe6d8c7bd9b4d640305567bc97;hb=959f514b78262ae6b276821bc61864fa6967b97c;hp=004a838b25a1bee701b5328dfc17498504c0d53f;hpb=561d285b2ea0fc084f54ef62b1f9c9d65a4877c8;p=supertux.git diff --git a/src/object/player.cpp b/src/object/player.cpp index 004a838b2..8367bd6c4 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -811,7 +811,7 @@ Player::draw(DrawingContext& context) return; // if Tux is above camera, draw little "air arrow" to show where he is x-wise - if (Sector::current() && Sector::current()->camera && (get_bbox().p2.y - 16 < Sector::current()->camera->get_translation().y)) { + 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);