Skip to content

Commit

Permalink
- handle mirroring in MNTR sprite renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Dec 7, 2019
1 parent e458713 commit 372733d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gamedata/w_wad.cpp
Expand Up @@ -885,9 +885,12 @@ void FWadCollection::RenameSprites (const TArray<FString> &deletelumps)
{
if (LumpInfo[i].lump->dwName == MAKE_ID('M', 'N', 'T', 'R'))
{
if (LumpInfo[i].lump->Name[4] >= 'F' && LumpInfo[i].lump->Name[4] <= 'K')
for (size_t fi : {4, 6})
{
LumpInfo[i].lump->Name[4] += 'U' - 'F';
if (LumpInfo[i].lump->Name[fi] >= 'F' && LumpInfo[i].lump->Name[fi] <= 'K')
{
LumpInfo[i].lump->Name[fi] += 'U' - 'F';
}
}
}
}
Expand Down

0 comments on commit 372733d

Please sign in to comment.