From: <ave...@us...> - 2009-07-06 21:58:08
|
Revision: 6714 http://gemrb.svn.sourceforge.net/gemrb/?rev=6714&view=rev Author: avenger_teambg Date: 2009-07-06 21:58:05 +0000 (Mon, 06 Jul 2009) Log Message: ----------- fixed cycle settings of child projectiles Modified Paths: -------------- gemrb/trunk/gemrb/plugins/Core/Projectile.cpp Modified: gemrb/trunk/gemrb/plugins/Core/Projectile.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/Core/Projectile.cpp 2009-07-06 21:57:33 UTC (rev 6713) +++ gemrb/trunk/gemrb/plugins/Core/Projectile.cpp 2009-07-06 21:58:05 UTC (rev 6714) @@ -119,7 +119,7 @@ return; } - if(PEF_CYCLE && !Seq) { + if((ExtFlags&PEF_CYCLE) && !Seq) { Seq=rand()%Max; } @@ -1075,6 +1075,9 @@ //create a custom projectile with single traveling effect Projectile *pro = server->CreateDefaultProjectile((unsigned int) ~0); strnlwrcpy(pro->BAMRes1, tmp, sizeof(ieResRef) ); + if (ExtFlags&PEF_TRAIL) { + pro->Aim = Aim; + } pro->SetEffects(NULL); //calculate the child projectile's target point, it is either //a perimeter or an inside point of the explosion radius This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |