From: LMH Date: Sat, 15 Nov 2014 23:45:46 +0000 (-1000) Subject: Tweak icecrusher draw layers to avoid objects (such as coins) from appearing inside... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1f813f3b4ca1af669c7183f25af902de7205dd65;p=supertux.git Tweak icecrusher draw layers to avoid objects (such as coins) from appearing inside the eyes. Also removed excess debug line. --- diff --git a/src/object/icecrusher.cpp b/src/object/icecrusher.cpp index 55129ce34..1e94d656e 100644 --- a/src/object/icecrusher.cpp +++ b/src/object/icecrusher.cpp @@ -238,14 +238,14 @@ IceCrusher::draw(DrawingContext& context) { context.push_target(); context.set_target(DrawingContext::NORMAL); - sprite->draw(context, get_pos(), layer); + sprite->draw(context, get_pos(), layer+2); if(!(state == CRUSHING) && sprite->has_action("whites")) { // draw icecrusher's eyes slightly behind - lefteye->draw(context, get_pos()+eye_position(false), layer-1); - righteye->draw(context, get_pos()+eye_position(true), layer-1); + lefteye->draw(context, get_pos()+eye_position(false), layer+1); + righteye->draw(context, get_pos()+eye_position(true), layer+1); // draw the whites of icecrusher's eyes even further behind - whites->draw(context, get_pos(), layer-2); + whites->draw(context, get_pos(), layer); } context.pop_target(); } diff --git a/src/object/player.cpp b/src/object/player.cpp index a6aeed78b..1f4f65aa3 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -733,7 +733,6 @@ Player::handle_vertical_input() if (glide_time > 0 && !ability_timer.started()) ability_timer.start(glide_time); else if (ability_timer.started()) { - log_debug << ability_timer.get_timeleft() << std::endl; // glide stops after some duration or if buttjump is initiated if ((ability_timer.get_timeleft() <= 0.05f) || controller->hold(Controller::DOWN)) { glide_time = 0;