Log when something hits the path cache

This commit is contained in:
Paul Chote
2010-06-30 20:39:52 +12:00
parent 4c3930043e
commit 521e6b8549

View File

@@ -56,6 +56,7 @@ namespace OpenRA
var cached = CachedPaths.FirstOrDefault(p => p.from == from && p.to == target && p.actor == self);
if (cached != null)
{
Log.Write("debug", "Actor {0} asked for a path from {1} tick(s) ago", self.ActorID, Game.LocalTick - cached.tick);
cached.tick = Game.LocalTick;
return new List<int2>(cached.result);
}