Complete conditions when CompleteMission() is called.
This commit is contained in:
parent
d3b0755f8b
commit
f1f962aeae
|
@ -20,9 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#include "objectives.h"
|
||||
|
||||
void completeConditions(void);
|
||||
void failIncompleteObjectives(void);
|
||||
|
||||
void doObjectives(void)
|
||||
{
|
||||
int objectiveFailed;
|
||||
|
@ -71,8 +68,6 @@ void doObjectives(void)
|
|||
{
|
||||
completeMission();
|
||||
|
||||
completeConditions();
|
||||
|
||||
updateChallenges();
|
||||
}
|
||||
|
||||
|
|
|
@ -101,6 +101,8 @@ void completeMission(void)
|
|||
|
||||
game.stats[STAT_MISSIONS_COMPLETED]++;
|
||||
|
||||
completeConditions();
|
||||
|
||||
retreatEnemies();
|
||||
|
||||
player->flags |= EF_IMMORTAL;
|
||||
|
|
|
@ -41,6 +41,7 @@ extern void selectWidget(const char *name, const char *group);
|
|||
extern Entity *spawnExtractionPoint(void);
|
||||
extern Entity *spawnItem(char *type);
|
||||
extern void failIncompleteObjectives(void);
|
||||
extern void completeConditions(void);
|
||||
extern void retreatEnemies(void);
|
||||
extern void initScript(cJSON *missionJSON);
|
||||
|
||||
|
|
Loading…
Reference in New Issue