Better table naming convention
This commit is contained in:
parent
723fbd8523
commit
b43eb0cc59
1 changed files with 10 additions and 10 deletions
|
@ -1204,7 +1204,7 @@ void MassiveLookupTablesInit (void)
|
|||
#endif
|
||||
thepaltouse = host_basepal;
|
||||
|
||||
Sys_FileOpenRead (va("%s/tinttab.lmp",com_gamedir), &iTablefile);
|
||||
Sys_FileOpenRead (va("%s/tab_tint.lmp",com_gamedir), &iTablefile);
|
||||
if(iTablefile != -1)
|
||||
{
|
||||
printf("\n[ENGINE] Reading alpha table... ");
|
||||
|
@ -1238,7 +1238,7 @@ void MassiveLookupTablesInit (void)
|
|||
VID_SetPalette2 (thepaltouse);
|
||||
|
||||
|
||||
Sys_FileOpenRead (va("%s/dithtab.lmp",com_gamedir), &iTablefile);
|
||||
Sys_FileOpenRead (va("%s/tab_dith.lmp",com_gamedir), &iTablefile);
|
||||
if(iTablefile != -1)
|
||||
{
|
||||
printf("\n[ENGINE] Reading 15-bit lookup table... ");
|
||||
|
@ -1301,7 +1301,7 @@ void MassiveLookupTablesInit (void)
|
|||
printf("[DONE]");
|
||||
}
|
||||
|
||||
Sys_FileOpenRead (va("%s/palmap2.lmp",com_gamedir), &iTablefile);
|
||||
Sys_FileOpenRead (va("%s/tab_pal2.lmp",com_gamedir), &iTablefile);
|
||||
if(iTablefile != -1)
|
||||
{
|
||||
printf("\n[ENGINE] Reading 18-bit lookup table... ");
|
||||
|
@ -1331,7 +1331,7 @@ void MassiveLookupTablesInit (void)
|
|||
printf("[DONE]");
|
||||
}
|
||||
|
||||
Sys_FileOpenRead (va("%s/addmap.lmp",com_gamedir), &iTablefile);
|
||||
Sys_FileOpenRead (va("%s/tab_add.lmp",com_gamedir), &iTablefile);
|
||||
if(iTablefile != -1)
|
||||
{
|
||||
printf("\n[ENGINE] Reading additive table... ");
|
||||
|
@ -1357,7 +1357,7 @@ void MassiveLookupTablesInit (void)
|
|||
printf(" [DONE]");
|
||||
}
|
||||
|
||||
Sys_FileOpenRead (va("%s/mulmap.lmp",com_gamedir), &iTablefile);
|
||||
Sys_FileOpenRead (va("%s/tab_mul.lmp",com_gamedir), &iTablefile);
|
||||
if(iTablefile != -1)
|
||||
{
|
||||
printf("\n[ENGINE] Reading multiply blend table... ");
|
||||
|
@ -1396,15 +1396,15 @@ void MassiveLookupTablesInit (void)
|
|||
/* if (palmap)
|
||||
COM_WriteFile ("palmap.lmp", palmap, 32768);*/
|
||||
if (palmap2)
|
||||
COM_WriteFile ("palmap2.lmp", palmap2, 262144);
|
||||
COM_WriteFile ("tab_pal2.lmp", palmap2, 262144);
|
||||
if (addTable)
|
||||
COM_WriteFile ("addmap.lmp", addTable, 65536);
|
||||
COM_WriteFile ("tab_add.lmp", addTable, 65536);
|
||||
if (mulTable)
|
||||
COM_WriteFile ("mulmap.lmp", mulTable, 65536);
|
||||
COM_WriteFile ("tab_mul.lmp", mulTable, 65536);
|
||||
if (transTable)
|
||||
COM_WriteFile ("tinttab.lmp", transTable, 65536);
|
||||
COM_WriteFile ("tab_tint.lmp", transTable, 65536);
|
||||
if (ditherTable)
|
||||
COM_WriteFile ("dithtab.lmp", ditherTable, 1048576);.
|
||||
COM_WriteFile ("tab_dith.lmp", ditherTable, 1048576);
|
||||
|
||||
int ahe;
|
||||
for (ahe=0; ahe<256; ahe++)
|
||||
|
|
Loading…
Reference in a new issue