Ints are 4 bytes always (apparently), and Order's ToString is no longer broken

This commit is contained in:
alzeih
2010-04-08 19:20:02 +12:00
committed by Bob
parent 6d2f2378e9
commit bae27fc165
2 changed files with 6 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Network
public bool GameStarted { get { return FrameNumber != 0; } }
public IConnection Connection { get; private set; }
public readonly int SyncHeaderSize = 5;
public readonly int SyncHeaderSize = 9;
Dictionary<int, int> clientQuitTimes = new Dictionary<int, int>();
@@ -123,10 +123,10 @@ namespace OpenRA.Network
{
if( packet[ i ] != existingSync[ i ] )
{
if ( i < SyncHeaderSize + sizeof(int) )
if ( i < SyncHeaderSize )
OutOfSync(frame, "Tick");
else
OutOfSync( frame , (i - SyncHeaderSize - sizeof(int)) / 4);
OutOfSync( frame , (i - SyncHeaderSize) / 4);
}
}
}