fix #2663 crash when displaying the spawn tooltip in cnc

don't hard-code ra border chrome in shared lobbyutils
This commit is contained in:
Matthias Mailänder
2013-03-01 10:30:41 +01:00
parent 7e1ee0e2e5
commit fc5350c9f8

View File

@@ -183,9 +183,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var client = orderManager.LobbyInfo.Clients.FirstOrDefault(c => c.SpawnPoint == spawnPoint);
if (client != null)
{
var rect = new Rectangle(position.X, position.Y, Game.Renderer.Fonts["Regular"].Measure(client.Name).X + 15, 25);
WidgetUtils.DrawPanel("dialog4", rect);
Game.Renderer.Fonts["Regular"].DrawText(client.Name, position + new int2(5, 5), Color.White);
Game.Renderer.Fonts["Bold"].DrawTextWithContrast(client.Name, position + new int2(5, 5), Color.White, Color.Black, 1);
}
}
}