Don't allow an objective to be failed and completed at the same time.
This commit is contained in:
parent
7d49b11326
commit
dd407e2f1c
|
@ -156,7 +156,7 @@ void adjustObjectiveTargetValue(char *name, int type, int amount)
|
||||||
o->targetValue += amount;
|
o->targetValue += amount;
|
||||||
o->currentValue = MIN(o->currentValue, o->targetValue);
|
o->currentValue = MIN(o->currentValue, o->targetValue);
|
||||||
|
|
||||||
if (o->currentValue >= o->targetValue)
|
if (o->currentValue >= o->targetValue && o->targetValue > 0)
|
||||||
{
|
{
|
||||||
o->status = OS_COMPLETE;
|
o->status = OS_COMPLETE;
|
||||||
addHudMessage(colors.green, _("%s - Objective Complete!"), o->description);
|
addHudMessage(colors.green, _("%s - Objective Complete!"), o->description);
|
||||||
|
|
Loading…
Reference in New Issue