mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Fix FFA & Fatal error in NormalGameOptionsSender
This commit is contained in:
1 parent
086f8a6a02
commit
468026b336
5 files changed
+63
-46
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user