remove lots of debug spam

This commit is contained in:
Chris Forbes
2010-09-22 19:19:18 +12:00
parent 4dab4ed73f
commit 562e07264a
3 changed files with 2 additions and 22 deletions

View File

@@ -31,7 +31,6 @@ namespace OpenRA.Traits.Activities
public IActivity Tick( Actor self ) public IActivity Tick( Actor self )
{ {
self.CenterLocation = float2.Lerp(startLocation, endLocation, (float)ticks/(length-1)); self.CenterLocation = float2.Lerp(startLocation, endLocation, (float)ticks/(length-1));
Log.Write("debug", "drag #{0} {1} {2}", self.ActorID, ticks, self.CenterLocation);
if (++ticks >= length) if (++ticks >= length)
{ {

View File

@@ -110,14 +110,9 @@ namespace OpenRA.Traits.Activities
List<int2> EvalPath( Actor self, Mobile mobile ) List<int2> EvalPath( Actor self, Mobile mobile )
{ {
var path = getPath(self, mobile).TakeWhile(a => a != mobile.toCell).ToList(); var path = getPath(self, mobile).TakeWhile(a => a != mobile.toCell).ToList();
Log.Write("debug", "EvalPath #{0} {1}",
self.ActorID, string.Join(" ", path.Select(a => a.ToString()).ToArray()));
mobile.PathHash = HashList(path); mobile.PathHash = HashList(path);
Log.Write("debug", "EvalPathHash #{0} {1}", Log.Write("debug", "EvalPathHash #{0} {1}",
self.ActorID, mobile.PathHash); self.ActorID, mobile.PathHash);
return path; return path;
} }
@@ -157,9 +152,6 @@ namespace OpenRA.Traits.Activities
if( firstFacing != mobile.Facing ) if( firstFacing != mobile.Facing )
{ {
path.Add( nextCell.Value ); path.Add( nextCell.Value );
Log.Write("debug", "Turn: #{0} from {1} to {2}",
self.ActorID, mobile.Facing, firstFacing);
return Util.SequenceActivities( new Turn( firstFacing ), this ).Tick( self ); return Util.SequenceActivities( new Turn( firstFacing ), this ).Tick( self );
} }
else else

View File

@@ -67,22 +67,14 @@ namespace OpenRA.Traits
public int Facing public int Facing
{ {
get { return __facing; } get { return __facing; }
set set { __facing = value; }
{
if (__facing == value)
return; // not interesting unless it changes
__facing = value;
Log.Write("debug", "#{0} set Facing={1}", self.ActorID, value);
Log.Write("debug", "{0}", new StackTrace());
}
} }
[Sync] [Sync]
public int Altitude public int Altitude
{ {
get { return __altitude; } get { return __altitude; }
set { __altitude = value; Log.Write("debug", "#{0} set Altitude={1}", self.ActorID, value); } set { __altitude = value; }
} }
public int ROT { get { return Info.ROT; } } public int ROT { get { return Info.ROT; } }
@@ -112,9 +104,6 @@ namespace OpenRA.Traits
__fromCell = from; __fromCell = from;
__toCell = to; __toCell = to;
AddInfluence(); AddInfluence();
Log.Write("debug", "#{0} set location = {1} {2}", self.ActorID, from, to);
Log.Write("debug", "{0}", new StackTrace());
} }
UnitInfluence uim; UnitInfluence uim;