Skip to content

Commit

Permalink
Miner's hardhat shakes with stone Tux during second prior to end of s…
Browse files Browse the repository at this point in the history
…tone form
  • Loading branch information
LMH0013 committed Dec 14, 2014
1 parent 21345be commit 8f89517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/object/player.cpp
Expand Up @@ -1276,11 +1276,11 @@ Player::draw(DrawingContext& context)
Vector shake_delta = (stone && ability_timer.get_timeleft() < 1.0f) ? Vector(graphicsRandom.rand(-3,3), 0) : Vector(0,0);
sprite->draw(context, get_pos() + shake_delta, LAYER_OBJECTS + 1);
// draw hardhat
powersprite->draw(context, get_pos(), LAYER_OBJECTS + 1);
powersprite->draw(context, get_pos() + shake_delta, LAYER_OBJECTS + 1);
// light
context.push_target();
context.set_target(DrawingContext::LIGHTMAP);
lightsprite->draw(context, get_pos()/* + Vector(dir==LEFT ? 0 : 32, 0)*/, 0);
lightsprite->draw(context, get_pos(), 0);
context.pop_target();
// give an indicator that stone form cannot be used for a while
if (cooldown_timer.started() && graphicsRandom.rand(0, 4) == 0) {
Expand Down

0 comments on commit 8f89517

Please sign in to comment.