Force enemies to flee when the mission is complete.

This commit is contained in:
Steve 2015-11-15 13:26:46 +00:00
parent 095e8b65a4
commit 0b459a9927
3 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define EF_NO_MT_BOX (2 << 6)
#define EF_CIVILIAN (2 << 7)
#define EF_HAS_ROPE (2 << 8)
#define EF_ALWAYS_FLEES (2 << 9)
enum
{

View File

@ -105,6 +105,8 @@ void completeMission(void)
selectWidget("continue", "battleWon");
game.stats[STAT_MISSIONS_COMPLETED]++;
fleeAllEnemies();
}
}

View File

@ -40,6 +40,7 @@ extern void activateNextWaypoint(void);
extern void selectWidget(const char *name, const char *group);
extern Entity *spawnExtractionPoint(void);
extern void failIncompleteObjectives(void);
extern void fleeAllEnemies(void);
extern Battle battle;
extern Entity *player;