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:
terminx 2012-06-21 19:47:02 +00:00
parent 13a2f97a72
commit 4002492146

View file

@ -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);