Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: <avenger_teambg@us...> - 2008-04-11 16:24:55
|
Revision: 5132 http://gemrb.svn.sourceforge.net/gemrb/?rev=5132&view=rev Author: avenger_teambg Date: 2008-04-11 09:24:34 -0700 (Fri, 11 Apr 2008) Log Message: ----------- fixed 2 more off by one errors in EffectQueue Modified Paths: -------------- gemrb/trunk/gemrb/plugins/Core/EffectQueue.cpp Modified: gemrb/trunk/gemrb/plugins/Core/EffectQueue.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/Core/EffectQueue.cpp 2008-04-01 07:56:44 UTC (rev 5131) +++ gemrb/trunk/gemrb/plugins/Core/EffectQueue.cpp 2008-04-11 16:24:34 UTC (rev 5132) @@ -101,7 +101,7 @@ #define DURATION 2 static const int fx_prepared[MAX_TIMING_MODE]={DURATION,PERMANENT,PERMANENT,DELAYED, //0-3 -DELAYED,DELAYED,DELAYED,DELAYED,PERMANENT,PERMANENT,PERMANENT}; //4-7 +DELAYED,DELAYED,DELAYED,DELAYED,PERMANENT,PERMANENT,PERMANENT}; //4-7 inline int IsPrepared(ieByte timingmode) { @@ -460,7 +460,8 @@ case FX_TARGET_PARTY: game=core->GetGame(); - for (i = game->GetPartySize(true); i >= 0; i--) { + i = game->GetPartySize(true); + while(i--) { Actor* actor = game->GetPC( i, true ); fx->PosX=actor->Pos.x; fx->PosY=actor->Pos.y; @@ -474,7 +475,8 @@ case FX_TARGET_GLOBAL_INCL_PARTY: map=self->GetCurrentArea(); - for (i = map->GetActorCount(true)-1; i >= 0; i--) { + i= map->GetActorCount(true); + while(i--) { Actor* actor = map->GetActor( i, true ); fx->PosX=actor->Pos.x; fx->PosY=actor->Pos.y; @@ -488,7 +490,8 @@ case FX_TARGET_GLOBAL_EXCL_PARTY: map=self->GetCurrentArea(); - for (i = map->GetActorCount(false); i >= 0; i--) { + i = map->GetActorCount(false); + while(i--) { Actor* actor = map->GetActor( i, false ); fx->PosX=actor->Pos.x; fx->PosY=actor->Pos.y; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |