Added validation log messages for individual attributes when loading classes.

This commit is contained in:
Richard Helgeby
2010-08-06 14:24:10 +02:00
parent d795604978
commit 3f68eaa2f0
2 changed files with 106 additions and 10 deletions

View File

@ -612,7 +612,7 @@ ClassLoad()
ClassData[ClassCount][Class_JumpDistance] = KvGetFloat(kvClassData, "jump_distance", ZR_CLASS_DEFAULT_JUMP_DISTANCE);
// Validate the class attributes.
ClassErrorFlags = ClassValidateAttributes(ClassCount);
ClassErrorFlags = ClassValidateAttributes(ClassCount, true);
if (ClassErrorFlags > 0)
{
// There's one or more invalid class attributes. Disable the class