Simplify names, remove unused usings, remove redundant casts.
This commit is contained in:
@@ -13,7 +13,6 @@ using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Network;
|
||||
using OpenRA.Server;
|
||||
using S = OpenRA.Server.Server;
|
||||
|
||||
@@ -199,7 +198,7 @@ namespace OpenRA.Mods.Common.Server
|
||||
|
||||
// Validate whether color is allowed and get an alternative if it isn't
|
||||
if (client.Slot == null || !server.LobbyInfo.Slots[client.Slot].LockColor)
|
||||
client.Color = ColorValidator.ValidatePlayerColorAndGetAlternative(server, client.Color, client.Index);
|
||||
client.Color = ValidatePlayerColorAndGetAlternative(server, client.Color, client.Index);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Traits;
|
||||
@@ -760,7 +759,7 @@ namespace OpenRA.Mods.Common.Server
|
||||
{ "name",
|
||||
s =>
|
||||
{
|
||||
var sanitizedName = OpenRA.Settings.SanitizedPlayerName(s);
|
||||
var sanitizedName = Settings.SanitizedPlayerName(s);
|
||||
if (sanitizedName == client.Name)
|
||||
return true;
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using OpenRA.Server;
|
||||
using S = OpenRA.Server.Server;
|
||||
|
||||
Reference in New Issue
Block a user