diff --git a/OpenRA.Game/Traits/Activities/Drag.cs b/OpenRA.Game/Traits/Activities/Drag.cs index ce1646686f..525272d731 100644 --- a/OpenRA.Game/Traits/Activities/Drag.cs +++ b/OpenRA.Game/Traits/Activities/Drag.cs @@ -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) { diff --git a/OpenRA.Game/Traits/Activities/Move.cs b/OpenRA.Game/Traits/Activities/Move.cs index 7829f73104..fe3f0f10c3 100755 --- a/OpenRA.Game/Traits/Activities/Move.cs +++ b/OpenRA.Game/Traits/Activities/Move.cs @@ -110,14 +110,9 @@ namespace OpenRA.Traits.Activities List 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 diff --git a/OpenRA.Game/Traits/Mobile.cs b/OpenRA.Game/Traits/Mobile.cs index f6431576a5..836d6aee15 100644 --- a/OpenRA.Game/Traits/Mobile.cs +++ b/OpenRA.Game/Traits/Mobile.cs @@ -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;