Merge pull request #473 from MajorCooke/FadeFix

Fade fix
This commit is contained in:
coelckers 2016-01-14 09:16:39 +01:00
commit 722ef02719

View file

@ -2439,7 +2439,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FadeIn)
if (flags & FTF_CLAMP) if (flags & FTF_CLAMP)
self->alpha = (FRACUNIT * 1); self->alpha = (FRACUNIT * 1);
if (flags & FTF_REMOVE) if (flags & FTF_REMOVE)
self->Destroy(); P_RemoveThing(self);
} }
} }
@ -2467,7 +2467,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FadeOut)
if (flags & FTF_CLAMP) if (flags & FTF_CLAMP)
self->alpha = 0; self->alpha = 0;
if (flags & FTF_REMOVE) if (flags & FTF_REMOVE)
self->Destroy(); P_RemoveThing(self);
} }
} }
@ -2515,7 +2515,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FadeTo)
} }
if (self->alpha == target && (flags & FTF_REMOVE)) if (self->alpha == target && (flags & FTF_REMOVE))
{ {
self->Destroy(); P_RemoveThing(self);
} }
} }