Fix torch palette remapping

This commit is contained in:
nukeykt 2019-10-29 16:37:34 +09:00 committed by Christoph Oelckers
parent 1a01ee6130
commit 200cfa45f5

View file

@ -393,16 +393,13 @@ void DrawView()
{
sectorFloorPal[i] = sector[i].floorpal;
sectorCeilingPal[i] = sector[i].ceilingpal;
if (sector[i].floorpal != kPalRedBrite)
sector[i].floorpal = kPalGreenBrite;
if (sector[i].ceilingpal != kPalRedBrite)
sector[i].ceilingpal = kPalGreenBrite;
sector[i].floorpal = RemapPLU(sectorFloorPal[i]);
sector[i].ceilingpal = RemapPLU(sectorCeilingPal[i]);
}
for (int i = 0; i < numwalls; i++)
{
wallPal[i] = wall[i].pal;
if (wall[i].pal != kPalRedBrite)
wall[i].pal = kPalGreenBrite;
wall[i].pal = RemapPLU(wallPal[i]);
}
}