From dd407e2f1c877d8d5d02ca43557defddb6b160d2 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 17 May 2016 15:55:18 +0100 Subject: [PATCH] Don't allow an objective to be failed and completed at the same time. --- src/battle/objectives.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle/objectives.c b/src/battle/objectives.c index b377d87..1c42bb4 100644 --- a/src/battle/objectives.c +++ b/src/battle/objectives.c @@ -156,7 +156,7 @@ void adjustObjectiveTargetValue(char *name, int type, int amount) o->targetValue += amount; o->currentValue = MIN(o->currentValue, o->targetValue); - if (o->currentValue >= o->targetValue) + if (o->currentValue >= o->targetValue && o->targetValue > 0) { o->status = OS_COMPLETE; addHudMessage(colors.green, _("%s - Objective Complete!"), o->description);