summaryrefslogtreecommitdiff
path: root/apps/plugins/chopper.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chopper.c')
-rw-r--r--apps/plugins/chopper.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index 70763a1b67..392b840317 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -523,19 +523,18 @@ static void chopAddBlock(int x,int y,int sx,int sy, int indexOverride)
523 523
524static void chopAddParticle(int x,int y,int sx,int sy) 524static void chopAddParticle(int x,int y,int sx,int sy)
525{ 525{
526 int i=0; 526 for(int i = 0; i < NUMBER_OF_PARTICLES; ++i)
527 527 {
528 while(mParticles[i].bIsActive && i < NUMBER_OF_PARTICLES) 528 if(!mParticles[i].bIsActive)
529 i++; 529 {
530 530 mParticles[i].bIsActive = 1;
531 if(i==NUMBER_OF_PARTICLES) 531 mParticles[i].iWorldX = x;
532 return; 532 mParticles[i].iWorldY = y;
533 533 mParticles[i].iSpeedX = sx;
534 mParticles[i].bIsActive = 1; 534 mParticles[i].iSpeedY = sy;
535 mParticles[i].iWorldX = x; 535 return;
536 mParticles[i].iWorldY = y; 536 }
537 mParticles[i].iSpeedX = sx; 537 }
538 mParticles[i].iSpeedY = sy;
539} 538}
540 539
541static void chopGenerateBlockIfNeeded(void) 540static void chopGenerateBlockIfNeeded(void)