Fixed disabled classes still being validated.
This commit is contained in:
parent
88bb7f514c
commit
16280e0397
|
@ -610,7 +610,9 @@ ClassLoad()
|
||||||
ClassData[ClassCount][Class_JumpHeight] = KvGetFloat(kvClassData, "jump_height", ZR_CLASS_DEFAULT_JUMP_HEIGHT);
|
ClassData[ClassCount][Class_JumpHeight] = KvGetFloat(kvClassData, "jump_height", ZR_CLASS_DEFAULT_JUMP_HEIGHT);
|
||||||
ClassData[ClassCount][Class_JumpDistance] = KvGetFloat(kvClassData, "jump_distance", ZR_CLASS_DEFAULT_JUMP_DISTANCE);
|
ClassData[ClassCount][Class_JumpDistance] = KvGetFloat(kvClassData, "jump_distance", ZR_CLASS_DEFAULT_JUMP_DISTANCE);
|
||||||
|
|
||||||
// Validate the class attributes.
|
// Validate class attributes if class is enabled.
|
||||||
|
if (ClassData[ClassCount][Class_Enabled])
|
||||||
|
{
|
||||||
ClassErrorFlags = ClassValidateAttributes(ClassCount, true);
|
ClassErrorFlags = ClassValidateAttributes(ClassCount, true);
|
||||||
if (ClassErrorFlags > 0)
|
if (ClassErrorFlags > 0)
|
||||||
{
|
{
|
||||||
|
@ -621,6 +623,7 @@ ClassLoad()
|
||||||
|
|
||||||
failedcount++;
|
failedcount++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Update the counter.
|
// Update the counter.
|
||||||
ClassCount++;
|
ClassCount++;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user