Fix FFA & Fatal error in NormalGameOptionsSender

This commit is contained in:
Gurge44 committed 2023-10-21 13:48:46 +02:00
1 parent 086f8a6a02
commit 468026b336
5 files changed
+63 -46

No files matched your search

+1 -2
View File
@@ -385,8 +385,7 @@ static class ExtendedPlayerControl
}
public static string GetNameWithRole(this PlayerControl player, bool forUser = false)
{
var ret = $"{player?.Data?.PlayerName}" + (GameStates.IsInGame ? $"({player?.GetAllRoleName(forUser)})" : string.Empty);
return ret;
return $"{player?.Data?.PlayerName}" + (GameStates.IsInGame && Options.CurrentGameMode != CustomGameMode.FFA ? $"({player?.GetAllRoleName(forUser).RemoveHtmlTags()})" : string.Empty);
}
public static string GetRoleColorCode(this PlayerControl player)
{