Attach fade_t thinker to proper control sector upon savegame load

This commit is contained in:
mazmazz 2018-08-13 22:17:58 -04:00
parent 004cbe6a3d
commit 841c31a6ba
1 changed files with 3 additions and 3 deletions

View File

@ -2577,9 +2577,9 @@ static inline void LoadFadeThinker(actionf_p1 thinker)
ht->dospawnflags = READUINT8(save_p);
ht->dofadeinonly = READUINT8(save_p);
sector_t *ffloorsector = LoadSector(ht->affectee);
if (ffloorsector)
ffloorsector->fadingdata = ht;
line_t *ffloorline = LoadLine(ht->affectee);
if (ffloorline && ffloorline->frontsector)
ffloorline->frontsector->fadingdata = ht;
P_AddThinker(&ht->thinker);
}