Added disable limit to challenges.
This commit is contained in:
parent
a335b738a7
commit
3537265e6a
|
@ -89,6 +89,8 @@ void loadChallenge(Mission *mission, cJSON *node)
|
|||
int i;
|
||||
Challenge *challenge;
|
||||
|
||||
memset(&mission->challengeData, 0, sizeof(ChallengeData));
|
||||
|
||||
mission->challengeData.isChallenge = 1;
|
||||
|
||||
/* limits */
|
||||
|
@ -99,6 +101,7 @@ void loadChallenge(Mission *mission, cJSON *node)
|
|||
mission->challengeData.itemLimit = getJSONValue(node, "itemLimit", 0);
|
||||
mission->challengeData.playerItemLimit = getJSONValue(node, "playerItemLimit", 0);
|
||||
mission->challengeData.rescueLimit = getJSONValue(node, "rescueLimit", 0);
|
||||
mission->challengeData.disableLimit = getJSONValue(node, "disableLimit", 0);
|
||||
|
||||
/* restrictions */
|
||||
mission->challengeData.noMissiles = getJSONValue(node, "noMissiles", 0);
|
||||
|
|
|
@ -257,6 +257,7 @@ typedef struct {
|
|||
int escapeLimit;
|
||||
int waypointLimit;
|
||||
int rescueLimit;
|
||||
int disableLimit;
|
||||
int noMissiles;
|
||||
int noBoost;
|
||||
int noECM;
|
||||
|
|
Loading…
Reference in New Issue