Remove PathHash
This is 9(!) years old and we haven't had pathfinding-related desyncs in quite a while. We can still bring this back later if we ever need it again.
This commit is contained in:
@@ -150,7 +150,6 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
List<CPos> EvalPath(BlockedByActor check)
|
List<CPos> EvalPath(BlockedByActor check)
|
||||||
{
|
{
|
||||||
var path = getPath(check).TakeWhile(a => a != mobile.ToCell).ToList();
|
var path = getPath(check).TakeWhile(a => a != mobile.ToCell).ToList();
|
||||||
mobile.PathHash = HashList(path);
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -217,9 +217,6 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
[Sync]
|
[Sync]
|
||||||
public CPos ToCell => toCell;
|
public CPos ToCell => toCell;
|
||||||
|
|
||||||
[Sync]
|
|
||||||
public int PathHash; // written by Move.EvalPath, to temporarily debug this crap.
|
|
||||||
|
|
||||||
public Locomotor Locomotor { get; private set; }
|
public Locomotor Locomotor { get; private set; }
|
||||||
|
|
||||||
public IPathFinder Pathfinder { get; private set; }
|
public IPathFinder Pathfinder { get; private set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user