Skip to content

Commit

Permalink
- Exhumed: Remove sequence post-processing since range checks from `c…
Browse files Browse the repository at this point in the history
…039882dcc8b0a99c17d5eea47e2b0e5d91e49c0` handle this.
  • Loading branch information
mjr4077au committed Nov 6, 2023
1 parent 63f510f commit 79b8831
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions source/games/exhumed/src/sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,32 +137,6 @@ TArray<Seq>* getFileSeqs(const FName nSeqFile)
//
//---------------------------------------------------------------------------

static void fixSeqs()
{
// Seq file "skulstrt" has one sprite face with 20 frames instead of 24.
if (const auto skulstrt = FileSeqMap.CheckKey("skulstrt"))
{
// Get 5th sequence with missing frames.
if (const auto seq = skulstrt->Data(4))
{
// Store last frame.
const auto lastframe = seq->frames.Last();

// Repeat last frame another four times.
for (unsigned i = 20; i < 24; i++)
{
seq->frames.Push(lastframe);
}
}
}
}

//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------

static int addSeq(const char *seqName)
{
const FStringf seqfilename("%s.seq", seqName);
Expand Down Expand Up @@ -336,9 +310,6 @@ void seq_LoadSequences()
}
}

// Perform sequence post-processing for where original assets are malformed.
fixSeqs();

nShadowPic = getSequence("shadow")->getFirstFrameTexture();
nShadowWidth = (int16_t)TexMan.GetGameTexture(nShadowPic)->GetDisplayWidth();

Expand Down

0 comments on commit 79b8831

Please sign in to comment.