mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Fix useless "No error" message when loading palette.dat fails, change file casing in error message for failing to load tables.dat to reflect the filename actually passed to kopen4load().
git-svn-id: https://svn.eduke32.com/eduke32@2775 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
13a2f97a72
commit
4002492146
1 changed files with 7 additions and 2 deletions
|
@ -7367,7 +7367,7 @@ static int32_t loadtables(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
engineerrstr = "Failed to load TABLES.DAT!";
|
||||
engineerrstr = "Failed to load 'tables.dat'!";
|
||||
initprintf("ERROR: %s\n", engineerrstr);
|
||||
return 1;
|
||||
}
|
||||
|
@ -7427,7 +7427,12 @@ static int32_t loadpalette(void)
|
|||
int32_t fil;
|
||||
|
||||
if (paletteloaded != 0) return 0;
|
||||
if ((fil = kopen4load("palette.dat",0)) == -1) return -1;
|
||||
if ((fil = kopen4load("palette.dat",0)) == -1)
|
||||
{
|
||||
engineerrstr = "Failed to load 'palette.dat'!";
|
||||
initprintf("ERROR: %s\n", engineerrstr);
|
||||
return -1;
|
||||
}
|
||||
|
||||
kread(fil,palette,768);
|
||||
kread(fil,&numshades,2); numshades = B_LITTLE16(numshades);
|
||||
|
|
Loading…
Reference in a new issue