mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
A quick hack so that Mapster can load more pre-v7 PALETTE.DAT files.
git-svn-id: https://svn.eduke32.com/eduke32@5718 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
3cba791f5b
commit
0331870c1b
1 changed files with 2 additions and 2 deletions
|
@ -8289,7 +8289,7 @@ static void loadpalette(void)
|
|||
// Thus, the first two bytes will be 00 01, which is 256 if read as
|
||||
// little-endian int16_t.
|
||||
int32_t lamedukep = 0;
|
||||
if (numshades == 256)
|
||||
if (numshades >= 256)
|
||||
{
|
||||
static char const * const seekfail = "Warning: klseek() failed in loadpalette()!\n";
|
||||
|
||||
|
@ -8297,7 +8297,7 @@ static void loadpalette(void)
|
|||
if (kread_and_test(fil,&temp,2))
|
||||
return kclose(fil);
|
||||
temp = B_LITTLE16(temp);
|
||||
if (temp == 770) // 02 03
|
||||
if (temp == 770 || numshades > 256) // 02 03
|
||||
{
|
||||
if (klseek(fil, -4, BSEEK_CUR) < 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue