- floatified the translucency values in particle_t to elimintate the gross inaccuracies with fadeout time.

- widened ttl variable in particle_t to short to allow longer living particles than 6 seconds.
- reordered fields in particle_t to reduce struct size a bit.
This commit is contained in:
Christoph Oelckers 2017-01-07 13:13:16 +01:00
commit 581cd27818
4 changed files with 21 additions and 22 deletions

View file

@ -2593,7 +2593,7 @@ void R_ProjectParticle (particle_t *particle, const sector_t *sector, int shade,
vis->startfrac = 255 & (particle->color >>24);
vis->pic = NULL;
vis->bIsVoxel = false;
vis->renderflags = particle->trans;
vis->renderflags = short(particle->alpha * 255);
vis->FakeFlatStat = fakeside;
vis->floorclip = 0;
vis->ColormapNum = 0;