Fix a collection of minor style violations.
This enables several new StyleCopAnalyzer rules to be enabled immediately during migration.
This commit is contained in:
@@ -169,7 +169,7 @@ namespace OpenRA.Network
|
||||
var reader = new BinaryReader(networkStream);
|
||||
var serverProtocol = reader.ReadInt32();
|
||||
|
||||
if (ProtocolVersion.Version != serverProtocol)
|
||||
if (serverProtocol != ProtocolVersion.Version)
|
||||
throw new InvalidOperationException(
|
||||
"Protocol version mismatch. Server={0} Client={1}"
|
||||
.F(serverProtocol, ProtocolVersion.Version));
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace OpenRA.Network
|
||||
public string IpAddress;
|
||||
public ClientState State = ClientState.Invalid;
|
||||
public int Team;
|
||||
public string Slot; // Slot ID, or null for observer
|
||||
public string Slot; // Slot ID, or null for observer
|
||||
public string Bot; // Bot type, null for real clients
|
||||
public int BotControllerClientIndex; // who added the bot to the slot
|
||||
public bool IsAdmin;
|
||||
@@ -160,8 +160,8 @@ namespace OpenRA.Network
|
||||
|
||||
public class Slot
|
||||
{
|
||||
public string PlayerReference; // PlayerReference to bind against.
|
||||
public bool Closed; // Host has explicitly closed this slot.
|
||||
public string PlayerReference; // PlayerReference to bind against.
|
||||
public bool Closed; // Host has explicitly closed this slot.
|
||||
|
||||
public bool AllowBots;
|
||||
public bool LockFaction;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Reflection;
|
||||
@@ -18,8 +19,6 @@ using OpenRA.Primitives;
|
||||
|
||||
namespace OpenRA.Network
|
||||
{
|
||||
using System.Globalization;
|
||||
|
||||
class SyncReport
|
||||
{
|
||||
const int NumSyncReports = 5;
|
||||
|
||||
Reference in New Issue
Block a user