mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
455: Mixed D+C fix
This commit is contained in:
parent
2083cd815b
commit
73a907f52f
1 changed files with 3 additions and 1 deletions
|
|
@ -7484,6 +7484,8 @@ static void P_ResetColormapFader(sector_t *sector)
|
||||||
static void Add_ColormapFader(sector_t *sector, extracolormap_t *source_exc, extracolormap_t *dest_exc,
|
static void Add_ColormapFader(sector_t *sector, extracolormap_t *source_exc, extracolormap_t *dest_exc,
|
||||||
boolean ticbased, INT32 duration)
|
boolean ticbased, INT32 duration)
|
||||||
{
|
{
|
||||||
|
fadecolormap_t *d;
|
||||||
|
|
||||||
P_ResetColormapFader(sector);
|
P_ResetColormapFader(sector);
|
||||||
|
|
||||||
// nothing to do, set immediately
|
// nothing to do, set immediately
|
||||||
|
|
@ -7493,7 +7495,7 @@ static void Add_ColormapFader(sector_t *sector, extracolormap_t *source_exc, ext
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fadecolormap_t *d = Z_Malloc(sizeof *d, PU_LEVSPEC, NULL);
|
d = Z_Malloc(sizeof *d, PU_LEVSPEC, NULL);
|
||||||
d->thinker.function.acp1 = (actionf_p1)T_FadeColormap;
|
d->thinker.function.acp1 = (actionf_p1)T_FadeColormap;
|
||||||
d->sector = sector;
|
d->sector = sector;
|
||||||
d->source_exc = source_exc;
|
d->source_exc = source_exc;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue