mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +00:00
455: Fog flag fix for fading
This commit is contained in:
parent
21506873be
commit
761150b12d
1 changed files with 1 additions and 3 deletions
|
@ -7577,9 +7577,7 @@ void T_FadeColormap(fadecolormap_t *d)
|
||||||
|
|
||||||
fadestart = APPLYFADE(d->dest_exc->fadestart, d->source_exc->fadestart, d->sector->extra_colormap->fadestart);
|
fadestart = APPLYFADE(d->dest_exc->fadestart, d->source_exc->fadestart, d->sector->extra_colormap->fadestart);
|
||||||
fadeend = APPLYFADE(d->dest_exc->fadeend, d->source_exc->fadeend, d->sector->extra_colormap->fadeend);
|
fadeend = APPLYFADE(d->dest_exc->fadeend, d->source_exc->fadeend, d->sector->extra_colormap->fadeend);
|
||||||
// fog: essentially we're switching from source_exc->fog to dest_exc->fog with a delta
|
fog = abs(factor) > FRACUNIT/2 ? d->dest_exc->fog : d->source_exc->fog; // set new fog flag halfway through fade
|
||||||
// of 1 or -1, and hoping the factor rounds appropriately in the timing.
|
|
||||||
fog = APPLYFADE(d->dest_exc->fog, d->source_exc->fog, d->sector->extra_colormap->fog);
|
|
||||||
|
|
||||||
#undef APPLYFADE
|
#undef APPLYFADE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue