From: LMH Date: Fri, 18 Jul 2014 06:35:09 +0000 (-1000) Subject: Reduced the value of SWITCH_DELAY for magic blocks to prevent lanterns (and Tux)... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4dec9ee4ecba2f8f3b3ebce0fa9b6c8d10b37905;p=supertux.git Reduced the value of SWITCH_DELAY for magic blocks to prevent lanterns (and Tux) from prematurely passing through them while in free-fall --- diff --git a/src/object/magicblock.cpp b/src/object/magicblock.cpp index c69066b45..ef08c22ec 100644 --- a/src/object/magicblock.cpp +++ b/src/object/magicblock.cpp @@ -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),