Fixed removed (e.g. eaten) characters not appearing in the round summary, but still spawning during the next round
This commit is contained in:
@@ -308,10 +308,13 @@ namespace Barotrauma
|
||||
continue;
|
||||
}
|
||||
|
||||
CharacterInfo deadInfo = CharacterInfos.Find(x => c.Info == x);
|
||||
if (deadInfo != null) CharacterInfos.Remove(deadInfo);
|
||||
CharacterInfos.Remove(c.Info);
|
||||
}
|
||||
|
||||
//remove characterinfos whose character doesn't exist anymore
|
||||
//(i.e. character was removed during the round)
|
||||
CharacterInfos.RemoveAll(c => c.Character == null);
|
||||
|
||||
characters.Clear();
|
||||
listBox.ClearChildren();
|
||||
orderListBox.ClearChildren();
|
||||
|
||||
Reference in New Issue
Block a user