- handle mirroring in MNTR sprite renaming

https://forum.zdoom.org/viewtopic.php?t=66583
This commit is contained in:
alexey.lysiuk 2019-12-07 14:58:23 +02:00
parent e4587138bb
commit 372733da8c

View file

@ -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->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';
}
} }
} }
} }