- clarified error messages for bogus conversation scripts.

This commit is contained in:
Christoph Oelckers 2016-11-23 10:13:17 +01:00
parent 789315bb4a
commit 649c96261a

View file

@ -252,7 +252,7 @@ static bool LoadScriptFile(int lumpnum, FileReader *lump, int numnodes, bool inc
if ((type == 1 && !isbinary) || (type == 2 && isbinary)) if ((type == 1 && !isbinary) || (type == 2 && isbinary))
{ {
DPrintf(DMSG_ERROR, "Incorrect data format for %s.", Wads.GetLumpFullName(lumpnum)); DPrintf(DMSG_ERROR, "Incorrect data format for conversation script in %s.", Wads.GetLumpFullName(lumpnum));
return false; return false;
} }
@ -272,7 +272,7 @@ static bool LoadScriptFile(int lumpnum, FileReader *lump, int numnodes, bool inc
// is exactly 1516 bytes long. // is exactly 1516 bytes long.
if (numnodes % 1516 != 0) if (numnodes % 1516 != 0)
{ {
DPrintf(DMSG_ERROR, "Incorrect data format for %s.", Wads.GetLumpFullName(lumpnum)); DPrintf(DMSG_ERROR, "Incorrect data format for conversation script in %s.", Wads.GetLumpFullName(lumpnum));
return false; return false;
} }
numnodes /= 1516; numnodes /= 1516;
@ -282,7 +282,7 @@ static bool LoadScriptFile(int lumpnum, FileReader *lump, int numnodes, bool inc
// And the teaser version has 1488-byte entries. // And the teaser version has 1488-byte entries.
if (numnodes % 1488 != 0) if (numnodes % 1488 != 0)
{ {
DPrintf(DMSG_ERROR, "Incorrect data format for %s.", Wads.GetLumpFullName(lumpnum)); DPrintf(DMSG_ERROR, "Incorrect data format for conversation script in %s.", Wads.GetLumpFullName(lumpnum));
return false; return false;
} }
numnodes /= 1488; numnodes /= 1488;