(3dc4135ce) v0.9.5.1

This commit is contained in:
Regalis
2019-11-21 18:22:25 +01:00
parent b39922a074
commit 5c95c53118
287 changed files with 12655 additions and 5048 deletions
@@ -101,7 +101,7 @@ namespace Barotrauma
{
for (var i = allGoalsCount; i > 1;)
{
int j = TraitorMission.Random(i--);
int j = TraitorManager.RandomInt(i--);
var temp = indices[j];
indices[j] = indices[i];
indices[i] = temp;
@@ -125,10 +125,12 @@ namespace Barotrauma
completedGoals.Add(goal);
}
}
if (pendingGoals.Count <= 0)
if (pendingGoals.Count <= 0 && completedGoals.Count < allGoals.Count)
{
return false;
}
IsStarted = true;
traitor.SendChatMessageBox(StartMessageText, traitor.Mission?.Identifier);