cleanup dead code
This commit is contained in:
@@ -102,7 +102,7 @@ namespace OpenRa.Game
|
|||||||
var data = r.ReadString();
|
var data = r.ReadString();
|
||||||
|
|
||||||
return new Order(LookupPlayer(playerID),
|
return new Order(LookupPlayer(playerID),
|
||||||
name, null, null, int2.Zero, data);
|
name, null, null, int2.Zero, data) { IsImmediate = true };
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Game.Traits;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa.Game
|
||||||
{
|
{
|
||||||
@@ -18,14 +19,6 @@ namespace OpenRa.Game
|
|||||||
|
|
||||||
public void Tick()
|
public void Tick()
|
||||||
{
|
{
|
||||||
//SanityCheck();
|
|
||||||
|
|
||||||
//var units = Game.world.Actors
|
|
||||||
// .Select( a => a.traits.GetOrDefault<Traits.Mobile>() ).Where( m => m != null );
|
|
||||||
|
|
||||||
//foreach (var u in units)
|
|
||||||
// Update(u);
|
|
||||||
|
|
||||||
SanityCheck();
|
SanityCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,7 +40,7 @@ namespace OpenRa.Game
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[System.Diagnostics.Conditional( "SANITY_CHECKS" )]
|
[Conditional( "SANITY_CHECKS" )]
|
||||||
void SanityCheckAdd( Mobile a )
|
void SanityCheckAdd( Mobile a )
|
||||||
{
|
{
|
||||||
foreach( var c in a.OccupiedCells() )
|
foreach( var c in a.OccupiedCells() )
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System.Linq;
|
|||||||
using OpenRa.Game.GameRules;
|
using OpenRa.Game.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Game.Traits;
|
||||||
using IjwFramework.Types;
|
using IjwFramework.Types;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa.Game
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user