(6cbedf076) Fixed combat mission achievements being impossible to unlock.

This commit is contained in:
Joonas Rikkonen
2019-06-15 19:46:10 +03:00
parent 5397560ccc
commit b85da6bc53

View File

@@ -311,11 +311,9 @@ namespace Barotrauma
{
if (gameSession.Mission is CombatMission combatMission)
{
#if CLIENT
//all characters that are alive and in the winning team get an achievement
UnlockAchievement(gameSession.Mission.Prefab.AchievementIdentifier + (int)GameMain.GameSession.WinningTeam, true,
c => c != null && !c.IsDead && !c.IsUnconscious && combatMission.IsInWinningTeam(c));
#endif
}
else if (gameSession.Mission.Completed)
{