Set max number of effect back to 2500 to improve fireworks. Based on patch by Buginator in patch #994.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3969 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2008-03-09 10:51:26 +00:00
parent 2904483187
commit 8d2c9939f2
1 changed files with 1 additions and 10 deletions

View File

@ -74,7 +74,7 @@
extern UWORD OffScreenEffects;
#define MAX_EFFECTS 500
#define MAX_EFFECTS 2500
#define GRAVITON_GRAVITY ((float)-800)
#define EFFECT_X_FLIP 0x1
@ -799,15 +799,9 @@ static void updateFirework(EFFECT *psEffect)
dv.y = psEffect->position.y + dif;
effectGiveAuxVar(100);
addEffect(&dv,EFFECT_FIREWORK, FIREWORK_TYPE_STARBURST,FALSE,NULL,0);
// dv.x = dv.x - (2*xDif);
// dv.z = dv.z - (2*yDif); // buildings are level!
// effectGiveAuxVar(100);
// addEffect(&dv,EFFECT_FIREWORK, FIREWORK_TYPE_STARBURST,FALSE,NULL,0);
}
}
killEffect(psEffect);
}
else
{
@ -855,10 +849,7 @@ static void updateFirework(EFFECT *psEffect)
killEffect(psEffect);
}
}
}
}
// ----------------------------------------------------------------------------------------