Skip to content

Commit

Permalink
Reduced the value of SWITCH_DELAY for magic blocks to prevent lantern…
Browse files Browse the repository at this point in the history
…s (and Tux) from prematurely passing through them while in free-fall
  • Loading branch information
LMH0013 committed Jul 18, 2014
1 parent dc2410f commit 4dec9ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/object/magicblock.cpp
Expand Up @@ -33,16 +33,16 @@ const float MIN_INTENSITY = 0.8f;
const float ALPHA_SOLID = 0.7f;
const float ALPHA_NONSOLID = 0.3f;
const float MIN_SOLIDTIME = 1.0f;
const float SWITCH_DELAY = 0.1f; /**< seconds to wait for stable conditions until switching solidity */
const float SWITCH_DELAY = 0.06f; /**< seconds to wait for stable conditions until switching solidity */
}

MagicBlock::MagicBlock(const Reader& lisp) :
MovingSprite(lisp, "images/objects/magicblock/magicblock.sprite"),
is_solid(false),
is_solid(false),
trigger_red(),
trigger_green(),
trigger_blue(),
solid_time(0),
solid_time(0),
switch_delay(0),
color(),
light(1.0f,1.0f,1.0f),
Expand Down

0 comments on commit 4dec9ee

Please sign in to comment.