- renamed global palookup variable.

Since the same word gets used in text messages and local variables in the game code it is easier this way to search for it and facilitate its transition to the translation table management in PaletteContainer.
This commit is contained in:
Christoph Oelckers 2020-04-12 07:48:23 +02:00
parent fda4293013
commit 156a225ff4
9 changed files with 42 additions and 52 deletions

View file

@ -2039,7 +2039,7 @@ static int32_t defsparser(scriptfile *script)
// NOTE: all palookups are initialized, i.e. non-NULL!
// NOTE2: aliasing (pal==remappal) is OK
paletteMakeLookupTable(pal, palookup[remappal], red<<2, green<<2, blue<<2,
paletteMakeLookupTable(pal, lookuptables[remappal], red<<2, green<<2, blue<<2,
remappal==0 ? 1 : (nofloorpal == -1 ? g_noFloorPal[remappal] : nofloorpal));
}
break;
@ -2861,7 +2861,7 @@ static int32_t defsparser(scriptfile *script)
break;
}
uint8_t const * const sourcepal = (uint8_t *)palookup[source];
uint8_t const * const sourcepal = (uint8_t *)lookuptables[source];
if (EDUKE32_PREDICT_FALSE(sourcepal == NULL))
{
Printf("Error: palookup: Source palookup does not exist on line %s:%d\n",