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-861f7616d084master
parent
2904483187
commit
8d2c9939f2
|
@ -74,7 +74,7 @@
|
||||||
|
|
||||||
extern UWORD OffScreenEffects;
|
extern UWORD OffScreenEffects;
|
||||||
|
|
||||||
#define MAX_EFFECTS 500
|
#define MAX_EFFECTS 2500
|
||||||
|
|
||||||
#define GRAVITON_GRAVITY ((float)-800)
|
#define GRAVITON_GRAVITY ((float)-800)
|
||||||
#define EFFECT_X_FLIP 0x1
|
#define EFFECT_X_FLIP 0x1
|
||||||
|
@ -799,15 +799,9 @@ static void updateFirework(EFFECT *psEffect)
|
||||||
dv.y = psEffect->position.y + dif;
|
dv.y = psEffect->position.y + dif;
|
||||||
effectGiveAuxVar(100);
|
effectGiveAuxVar(100);
|
||||||
addEffect(&dv,EFFECT_FIREWORK, FIREWORK_TYPE_STARBURST,FALSE,NULL,0);
|
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);
|
killEffect(psEffect);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -855,10 +849,7 @@ static void updateFirework(EFFECT *psEffect)
|
||||||
killEffect(psEffect);
|
killEffect(psEffect);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue