cleaned up compiler warnings

This commit is contained in:
Chris Forbes
2010-02-18 20:32:34 +13:00
parent c4329aec29
commit 3237485055
26 changed files with 31 additions and 83 deletions

View File

@@ -97,13 +97,6 @@ namespace OpenRa
}
}
static Player LookupPlayer(World world, uint index)
{
return world.players
.Where(x => x.Value.Index == index)
.First().Value;
}
public static Order Deserialize(World world, BinaryReader r)
{
switch (r.ReadByte())

View File

@@ -28,7 +28,6 @@ namespace OpenRa.Network
{
class OrderManager
{
Stream savingReplay;
int frameNumber = 0;
public int FramesAhead = 0;
@@ -36,7 +35,8 @@ namespace OpenRa.Network
public bool GameStarted { get { return frameNumber != 0; } }
public IConnection Connection { get; private set; }
Dictionary<int, Dictionary<int, byte[]>> frameClientData = new Dictionary<int, Dictionary<int, byte[]>>();
Dictionary<int, Dictionary<int, byte[]>> frameClientData =
new Dictionary<int, Dictionary<int, byte[]>>();
List<int> readyForFrames = new List<int>();
List<Order> localOrders = new List<Order>();
@@ -59,7 +59,6 @@ namespace OpenRa.Network
public OrderManager( IConnection conn, string replayFilename )
: this( conn )
{
savingReplay = new FileStream( replayFilename, FileMode.Create );
}
public void IssueOrders( Order[] orders )