diff --git a/OpenRA.Game/Widgets/ChatDisplayWidget.cs b/OpenRA.Game/Widgets/ChatDisplayWidget.cs index affee3f5ad..e7bd0ee837 100644 --- a/OpenRA.Game/Widgets/ChatDisplayWidget.cs +++ b/OpenRA.Game/Widgets/ChatDisplayWidget.cs @@ -104,10 +104,10 @@ namespace OpenRA.Widgets public ChatLine(string owner, string text, uint expiration, Color color) { - this.Owner = owner; - this.Text = text; - this.Expiration = expiration; - this.Color = color; + Owner = owner; + Text = text; + Expiration = expiration; + Color = color; } } } \ No newline at end of file diff --git a/OpenRA.Game/Widgets/WidgetUtils.cs b/OpenRA.Game/Widgets/WidgetUtils.cs index 7ab7270407..573a824d80 100644 --- a/OpenRA.Game/Widgets/WidgetUtils.cs +++ b/OpenRA.Game/Widgets/WidgetUtils.cs @@ -172,7 +172,7 @@ namespace OpenRA.Widgets { var lines = text.Split('\n').ToList(); - for (int i=0; i width) { - int spaceIndex = line.LastIndexOf(' ', start); + var spaceIndex = line.LastIndexOf(' ', start); if (spaceIndex == -1) break; bestSpaceIndex = spaceIndex;