Pacifist trophy should be awarded only if enemies were present.

This commit is contained in:
Steve 2016-07-23 12:51:35 +01:00
parent cec4a90b08
commit 726a9f99db
1 changed files with 2 additions and 2 deletions

View File

@ -476,9 +476,9 @@ void awardPostMissionTrophies(void)
} }
/* /*
* Must be a non-challenge mission, a common fighter, must not be Sol, and must not have fired any shots or missiles * Must be a non-challenge mission, a common fighter, must not be Sol, and must not have fired any shots or missiles (and there should have been some enemies present)
*/ */
if (player->flags & EF_COMMON_FIGHTER && player->missiles && strcmp(game.selectedStarSystem, "Sol") && !battle.stats[STAT_SHOTS_FIRED] && !battle.stats[STAT_MISSILES_FIRED]) if (player->flags & EF_COMMON_FIGHTER && player->missiles && strcmp(game.selectedStarSystem, "Sol") && !battle.stats[STAT_SHOTS_FIRED] && !battle.stats[STAT_MISSILES_FIRED] && battle.numInitialEnemies > 0)
{ {
awardTrophy("PACIFIST"); awardTrophy("PACIFIST");
} }