1
0
forked from 0ad/0ad

Improve error message for broken quality levels in Actor files.

Differential Revision: https://code.wildfiregames.com/D3887
This was SVN commit r25321.
This commit is contained in:
wraitii 2021-04-26 14:59:32 +00:00
parent ad87f1e295
commit 8963786a76

View File

@ -869,7 +869,7 @@ bool CActorDef::Load(const VfsPath& pathname)
int v = GetQuality(attr.Value);
if (v > MAX_QUALITY)
{
LOGERROR("Qualitylevel to attribute must not be above %i (file %s)", MAX_QUALITY, pathname.string8());
LOGERROR("Quality levels can only go up to %i (file %s)", MAX_QUALITY, pathname.string8());
return false;
}
if (v <= quality)
@ -947,7 +947,7 @@ bool CActorDef::Load(const VfsPath& pathname)
}
if (quality != MAX_QUALITY)
{
LOGERROR("Quality levels must go up to %i (file %s)", MAX_QUALITY, pathname.string8().c_str());
LOGERROR("The highest quality level must be %i, but the highest level found was %i (file %s)", MAX_QUALITY, quality, pathname.string8().c_str());
return false;
}
}