Skip to content

Commit

Permalink
Fix wrong base pic being used
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored Sep 10, 2023
1 parent 0940c5a commit 74b0fe1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/gamedata/textures/animations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,9 @@ void FTextureAnimator::InitAnimatedTextures()
if (i == 0)
{
TexMan.ReplaceTexture(picnum, newtex, true);
picnum = newtex.GetID();
}
FTextureID textureId = TexMan.AddGameTexture(newtex);
if (i == 0)
{
picnum = textureId;
}
FTextureID textureId = (i == 0) ? newtex.GetID() : TexMan.AddGameTexture(newtex);
FAnimDef::FAnimFrame animFrame;
animFrame.SpeedMin = image->GetDurationOfFrame(i + 1);
animFrame.SpeedRange = 0;
Expand Down

0 comments on commit 74b0fe1

Please sign in to comment.