removed dead stuff
This commit is contained in:
@@ -108,7 +108,6 @@
|
|||||||
<Compile Include="PlaceBuilding.cs" />
|
<Compile Include="PlaceBuilding.cs" />
|
||||||
<Compile Include="Player.cs" />
|
<Compile Include="Player.cs" />
|
||||||
<Compile Include="Race.cs" />
|
<Compile Include="Race.cs" />
|
||||||
<Compile Include="Support\SharedResources.cs" />
|
|
||||||
<Compile Include="Graphics\Sheet.cs" />
|
<Compile Include="Graphics\Sheet.cs" />
|
||||||
<Compile Include="Support\Log.cs" />
|
<Compile Include="Support\Log.cs" />
|
||||||
<Compile Include="PathFinder.cs" />
|
<Compile Include="PathFinder.cs" />
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ namespace OpenRa.Game
|
|||||||
for( int i = 0 ; i < path.Count ; i++ )
|
for( int i = 0 ; i < path.Count ; i++ )
|
||||||
{
|
{
|
||||||
var sl = path[ i ];
|
var sl = path[ i ];
|
||||||
if( i == 0 || (Game.BuildingInfluence.CanMoveHere(path[i]) && Game.UnitInfluence.GetUnitAt( path[ i ] ) == null) )
|
if( /*i == 0 || */(Game.BuildingInfluence.CanMoveHere(path[i]) && Game.UnitInfluence.GetUnitAt( path[ i ] ) == null) )
|
||||||
{
|
{
|
||||||
queue.Add( new PathDistance( estimator( sl ), sl ) );
|
queue.Add( new PathDistance( estimator( sl ), sl ) );
|
||||||
cellInfo[ sl.X, sl.Y ] = new CellInfo( cost, prev, false );
|
cellInfo[ sl.X, sl.Y ] = new CellInfo( cost, prev, false );
|
||||||
|
|||||||
@@ -36,13 +36,10 @@ namespace OpenRa.Game
|
|||||||
|
|
||||||
static TerrainCosts()
|
static TerrainCosts()
|
||||||
{
|
{
|
||||||
IniFile file = SharedResources.Rules;
|
|
||||||
|
|
||||||
for( int i = 0 ; i < 10 ; i++ )
|
for( int i = 0 ; i < 10 ; i++ )
|
||||||
{
|
{
|
||||||
if( i == 4 )
|
if( i == 4 ) continue;
|
||||||
continue;
|
var section = Rules.AllRules.GetSection( ( (TerrainMovementType)i ).ToString() );
|
||||||
IniSection section = file.GetSection( ( (TerrainMovementType)i ).ToString() );
|
|
||||||
for( int j = 0 ; j < 4 ; j++ )
|
for( int j = 0 ; j < 4 ; j++ )
|
||||||
{
|
{
|
||||||
string val = section.GetValue( ( (UnitMovementType)j ).ToString(), "0%" );
|
string val = section.GetValue( ( (UnitMovementType)j ).ToString(), "0%" );
|
||||||
|
|||||||
Reference in New Issue
Block a user