SVN r39 (trunk)

This commit is contained in:
Christoph Oelckers 2006-04-13 20:33:19 +00:00
commit e8c7a10f80
2 changed files with 12 additions and 4 deletions

View file

@ -1186,18 +1186,21 @@ DThinker *FDecalStretcherAnim::CreateThinker (DBaseDecal *actor, side_t *wall) c
thinker->TimeToStart = level.maptime + StretchStart;
thinker->TimeToStop = thinker->TimeToStart + StretchTime;
if (GoalX >= 0)
FTexture * tex = TexMan[actor->PicNum];
if (GoalX >= 0 && tex != NULL)
{
thinker->GoalX = GoalX;
thinker->GoalX = GoalX / tex->GetWidth();
thinker->bStretchX = true;
}
else
{
thinker->bStretchX = false;
}
if (GoalY >= 0)
if (GoalY >= 0 && tex != NULL)
{
thinker->GoalY = GoalY;
thinker->GoalY = GoalY / tex->GetHeight();
thinker->bStretchY = true;
}
else