mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +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;
|
sectorFloorPal[i] = sector[i].floorpal;
|
||||||
sectorCeilingPal[i] = sector[i].ceilingpal;
|
sectorCeilingPal[i] = sector[i].ceilingpal;
|
||||||
if (sector[i].floorpal != kPalRedBrite)
|
sector[i].floorpal = RemapPLU(sectorFloorPal[i]);
|
||||||
sector[i].floorpal = kPalGreenBrite;
|
sector[i].ceilingpal = RemapPLU(sectorCeilingPal[i]);
|
||||||
if (sector[i].ceilingpal != kPalRedBrite)
|
|
||||||
sector[i].ceilingpal = kPalGreenBrite;
|
|
||||||
}
|
}
|
||||||
for (int i = 0; i < numwalls; i++)
|
for (int i = 0; i < numwalls; i++)
|
||||||
{
|
{
|
||||||
wallPal[i] = wall[i].pal;
|
wallPal[i] = wall[i].pal;
|
||||||
if (wall[i].pal != kPalRedBrite)
|
wall[i].pal = RemapPLU(wallPal[i]);
|
||||||
wall[i].pal = kPalGreenBrite;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue