remove lots of debug spam
This commit is contained in:
@@ -31,7 +31,6 @@ namespace OpenRA.Traits.Activities
|
||||
public IActivity Tick( Actor self )
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
||||
@@ -110,14 +110,9 @@ namespace OpenRA.Traits.Activities
|
||||
List<int2> EvalPath( Actor self, Mobile mobile )
|
||||
{
|
||||
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);
|
||||
Log.Write("debug", "EvalPathHash #{0} {1}",
|
||||
self.ActorID, mobile.PathHash);
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
@@ -157,9 +152,6 @@ namespace OpenRA.Traits.Activities
|
||||
if( firstFacing != mobile.Facing )
|
||||
{
|
||||
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 );
|
||||
}
|
||||
else
|
||||
|
||||
@@ -67,22 +67,14 @@ namespace OpenRA.Traits
|
||||
public int Facing
|
||||
{
|
||||
get { return __facing; }
|
||||
set
|
||||
{
|
||||
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());
|
||||
}
|
||||
set { __facing = value; }
|
||||
}
|
||||
|
||||
[Sync]
|
||||
public int 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; } }
|
||||
@@ -112,9 +104,6 @@ namespace OpenRA.Traits
|
||||
__fromCell = from;
|
||||
__toCell = to;
|
||||
AddInfluence();
|
||||
|
||||
Log.Write("debug", "#{0} set location = {1} {2}", self.ActorID, from, to);
|
||||
Log.Write("debug", "{0}", new StackTrace());
|
||||
}
|
||||
|
||||
UnitInfluence uim;
|
||||
|
||||
Reference in New Issue
Block a user