From 2a64df997a667f56c0f6e0d9bc3d20331166a92c Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 30 Oct 2011 09:09:24 +1300 Subject: [PATCH] fixed #1244 - cnc lobby crash on player joining --- OpenRA.Mods.Cnc/Widgets/Logic/CncLobbyLogic.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/OpenRA.Mods.Cnc/Widgets/Logic/CncLobbyLogic.cs b/OpenRA.Mods.Cnc/Widgets/Logic/CncLobbyLogic.cs index a12cf31c42..decb68306c 100644 --- a/OpenRA.Mods.Cnc/Widgets/Logic/CncLobbyLogic.cs +++ b/OpenRA.Mods.Cnc/Widgets/Logic/CncLobbyLogic.cs @@ -379,9 +379,8 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic else // Bot template.GetWidget("STATUS_IMAGE").IsVisible = () => true; } - // Non-editable player in slot else - { + { // Non-editable player in slot template = NonEditablePlayerTemplate.Clone(); template.GetWidget("NAME").GetText = () => client.Name; var color = template.GetWidget("COLOR"); @@ -397,9 +396,6 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic var team = template.GetWidget("TEAM"); team.GetText = () => (client.Team == 0) ? "-" : client.Team.ToString(); - var spawn = template.GetWidget("SPAWN"); - spawn.GetText = () => (client.SpawnPoint == 0) ? "-" : client.SpawnPoint.ToString(); - template.GetWidget("STATUS_IMAGE").IsVisible = () => client.Bot != null || client.State == Session.ClientState.Ready;