May 4, 2006 (Changes by Graf Zahl)

- Converted A_Hexendecorations.cpp
- Changed the lower decal spawning code to transfer the main decal's color if
  the lower decal's default color is the same as the main decal's.
- Changed the decal stretcher back to use the specified size parameters as a 
  scaling factor and not a destination size because this is more consistent with 
  the rest of the decal code. Also adjusted the blood smear definition in DECALDEF
  and the description in the Wiki for this.
- Added Jim's most recent fixes.


SVN r77 (trunk)
This commit is contained in:
Christoph Oelckers 2006-05-04 12:40:39 +00:00
commit 650d07b8c1
21 changed files with 1796 additions and 906 deletions

View file

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