mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- clarified error messages for bogus conversation scripts.
This commit is contained in:
parent
789315bb4a
commit
649c96261a
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue