mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
492: Remove pre-existing thinker when setting up new fade
This commit is contained in:
parent
ae5b02bccd
commit
f3f8575dfc
1 changed files with 3 additions and 0 deletions
|
|
@ -2969,6 +2969,9 @@ INT32 EV_DoPolyObjFade(polyfadedata_t *pfdata)
|
|||
if (po->translucency == pfdata->destvalue)
|
||||
return 1;
|
||||
|
||||
if (po->thinker && po->thinker->function.acp1 == (actionf_p1)T_PolyObjFade)
|
||||
P_RemoveThinker(po->thinker);
|
||||
|
||||
// create a new thinker
|
||||
th = Z_Malloc(sizeof(polyfade_t), PU_LEVSPEC, NULL);
|
||||
th->thinker.function.acp1 = (actionf_p1)T_PolyObjFade;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue