mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Fix torch palette remapping
This commit is contained in:
parent
1a01ee6130
commit
200cfa45f5
1 changed files with 3 additions and 6 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue