Set goal values in decal stretcher to zeros even if they are not used

See https://forum.zdoom.org/viewtopic.php?t=54592
This commit is contained in:
alexey.lysiuk 2016-12-20 13:14:02 +02:00 committed by Christoph Oelckers
parent a0595f17e8
commit 9f6d8d2ba7

View file

@ -1232,6 +1232,7 @@ DThinker *FDecalStretcherAnim::CreateThinker (DBaseDecal *actor, side_t *wall) c
}
else
{
thinker->GoalX = 0;
thinker->bStretchX = false;
}
if (GoalY >= 0)
@ -1241,6 +1242,7 @@ DThinker *FDecalStretcherAnim::CreateThinker (DBaseDecal *actor, side_t *wall) c
}
else
{
thinker->GoalY = 0;
thinker->bStretchY = false;
}
thinker->bStarted = false;