mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-22 23:21:08 +00:00
Fix some critical mistakes in my new def code (r5351 and r5367) caused by gaps in my attention.
git-svn-id: https://svn.eduke32.com/eduke32@5377 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a0018555ee
commit
b6ba1fc36a
1 changed files with 9 additions and 9 deletions
|
@ -3005,7 +3005,7 @@ static int32_t defsparser(scriptfile *script)
|
|||
break;
|
||||
}
|
||||
|
||||
makepalookup(id, palookupbuf, 0,0,0, 0);
|
||||
makepalookup(id, palookupbuf, 0,0,0, g_noFloorPal[id]);
|
||||
}
|
||||
|
||||
Bfree(palookupbuf);
|
||||
|
@ -3065,15 +3065,15 @@ static int32_t defsparser(scriptfile *script)
|
|||
{
|
||||
case T_RED:
|
||||
scriptfile_getnumber(script,&red);
|
||||
red = clamp(red, 0, 63);
|
||||
red = clamp(red, 0, 255);
|
||||
break;
|
||||
case T_GREEN:
|
||||
scriptfile_getnumber(script,&green);
|
||||
green = clamp(green, 0, 63);
|
||||
green = clamp(green, 0, 255);
|
||||
break;
|
||||
case T_BLUE:
|
||||
scriptfile_getnumber(script,&blue);
|
||||
blue = clamp(blue, 0, 63);
|
||||
blue = clamp(blue, 0, 255);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -3113,15 +3113,15 @@ static int32_t defsparser(scriptfile *script)
|
|||
{
|
||||
case T_RED:
|
||||
scriptfile_getnumber(script,&red);
|
||||
red = clamp(red, 0, 63);
|
||||
red = clamp(red, 0, 255);
|
||||
break;
|
||||
case T_GREEN:
|
||||
scriptfile_getnumber(script,&green);
|
||||
green = clamp(green, 0, 63);
|
||||
green = clamp(green, 0, 255);
|
||||
break;
|
||||
case T_BLUE:
|
||||
scriptfile_getnumber(script,&blue);
|
||||
blue = clamp(blue, 0, 63);
|
||||
blue = clamp(blue, 0, 255);
|
||||
break;
|
||||
case T_REMAPPAL:
|
||||
scriptfile_getsymbol(script,&remappal);
|
||||
|
@ -3146,7 +3146,7 @@ static int32_t defsparser(scriptfile *script)
|
|||
break;
|
||||
}
|
||||
|
||||
makepalookup(id, NULL, red, green, blue, 1);
|
||||
makepalookup(id, NULL, red, green, blue, g_noFloorPal[id]);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -3396,7 +3396,7 @@ static int32_t defsparser(scriptfile *script)
|
|||
}
|
||||
|
||||
for (int32_t i = id0; i <= id1; i++)
|
||||
removeblendtab(i);
|
||||
removepalookup(i);
|
||||
|
||||
if (id0 == 0)
|
||||
paletteloaded &= ~PALETTE_SHADE;
|
||||
|
|
Loading…
Reference in a new issue