remove path debug; convert all other chat abuses to Game.Debug()

This commit is contained in:
Chris Forbes
2010-03-30 07:54:23 +13:00
parent 3e45ed6133
commit 8e0e776a9a
4 changed files with 12 additions and 21 deletions

View File

@@ -69,8 +69,6 @@ namespace OpenRA
return new List<int2>(cached.result);
}
Game.Debug("FindUnitPath {0} -> {1}".F(from, target));
var pb = FindBidiPath(
PathSearch.FromPoint(world, target, from, umt, false).WithCustomBlocker(AvoidUnitsNear(from, 4)),
PathSearch.FromPoint(world, from, target, umt, false).WithCustomBlocker(AvoidUnitsNear(from, 4)));
@@ -85,7 +83,7 @@ namespace OpenRA
public List<int2> FindUnitPathToRange( int2 src, int2 target, UnitMovementType umt, int range )
{
//using( new PerfSample( "find_unit_path_multiple_src" ) )
using( new PerfSample( "find_unit_path_multiple_src" ) )
{
var tilesInRange = world.FindTilesInCircle(target, range)
.Where( t => world.IsPathableCell( t, umt ) );