From: <ave...@us...> - 2009-08-19 10:03:23
|
Revision: 6936 http://gemrb.svn.sourceforge.net/gemrb/?rev=6936&view=rev Author: avenger_teambg Date: 2009-08-19 10:03:16 +0000 (Wed, 19 Aug 2009) Log Message: ----------- final version: correct casting glow timing Modified Paths: -------------- gemrb/trunk/gemrb/plugins/Core/Spell.cpp Modified: gemrb/trunk/gemrb/plugins/Core/Spell.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/Core/Spell.cpp 2009-08-19 08:47:06 UTC (rev 6935) +++ gemrb/trunk/gemrb/plugins/Core/Spell.cpp 2009-08-19 10:03:16 UTC (rev 6936) @@ -95,7 +95,7 @@ if (block_index==-1) { assert(ext_index>=0); Effect *fx = EffectQueue::CreateEffect(fx_casting_glow_ref, 0, CastingGraphics, FX_DURATION_ABSOLUTE); - fx->Duration = ext_headers[ext_index].CastingTime+core->GetGame()->GameTime; + fx->Duration = (ext_headers[ext_index].CastingTime*ROUND_SIZE)/10+core->GetGame()->GameTime; fx->InventorySlot = 0xffff; fx->Projectile = 0; fxqueue->AddEffect(fx); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |