mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 06:41:59 +00:00
Fix for textured 2d map palette issue in Polymost
git-svn-id: https://svn.eduke32.com/eduke32@61 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
078fcb3cae
commit
0d3b0ed600
1 changed files with 1 additions and 0 deletions
|
@ -6169,6 +6169,7 @@ void drawmapview(long dax, long day, long zoome, short ang)
|
||||||
|
|
||||||
if (palookup[sec->floorpal] != globalpalwritten)
|
if (palookup[sec->floorpal] != globalpalwritten)
|
||||||
{
|
{
|
||||||
|
globalpal = sec->floorpal;
|
||||||
globalpalwritten = palookup[sec->floorpal];
|
globalpalwritten = palookup[sec->floorpal];
|
||||||
if (!globalpalwritten) globalpalwritten = palookup[globalpal]; // JBF: fixes null-pointer crash
|
if (!globalpalwritten) globalpalwritten = palookup[globalpal]; // JBF: fixes null-pointer crash
|
||||||
setpalookupaddress(globalpalwritten);
|
setpalookupaddress(globalpalwritten);
|
||||||
|
|
Loading…
Reference in a new issue