mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-20 18:52:31 +00:00
Particles will now have the correct trails when switching to the classic particle system.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3268 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0135abdf5e
commit
9cccfe2f35
1 changed files with 12 additions and 0 deletions
|
@ -149,6 +149,9 @@ static void PClassic_EmitSkyEffectTris(model_t *mod, msurface_t *fa)
|
|||
static void PClassic_InitParticles (void)
|
||||
{
|
||||
int i;
|
||||
model_t *mod;
|
||||
extern model_t mod_known[];
|
||||
extern int mod_numknown;
|
||||
|
||||
if ((i = COM_CheckParm ("-particles")) && i + 1 < com_argc) {
|
||||
r_numparticles = (int) (Q_atoi(com_argv[i + 1]));
|
||||
|
@ -160,6 +163,15 @@ static void PClassic_InitParticles (void)
|
|||
particles = (cparticle_t *) BZ_Malloc (r_numparticles * sizeof(cparticle_t));
|
||||
|
||||
CL_RegisterParticles();
|
||||
|
||||
for (i=0 , mod=mod_known ; i<mod_numknown ; i++, mod++)
|
||||
{
|
||||
mod->particleeffect = P_INVALID;
|
||||
mod->particletrail = P_INVALID;
|
||||
mod->engineflags &= ~MDLF_NODEFAULTTRAIL;
|
||||
|
||||
P_DefaultTrail(mod);
|
||||
}
|
||||
}
|
||||
|
||||
static void PClassic_ShutdownParticles(void)
|
||||
|
|
Loading…
Reference in a new issue