From 441e18b898d23993debc4b06671e5ded68ffc6ba Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sun, 7 Mar 2021 00:47:20 +0100 Subject: [PATCH] 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. --- OpenRA.Mods.Common/Activities/Move/Move.cs | 1 - OpenRA.Mods.Common/Traits/Mobile.cs | 3 --- 2 files changed, 4 deletions(-) diff --git a/OpenRA.Mods.Common/Activities/Move/Move.cs b/OpenRA.Mods.Common/Activities/Move/Move.cs index 207401ce0c..140978eb0f 100644 --- a/OpenRA.Mods.Common/Activities/Move/Move.cs +++ b/OpenRA.Mods.Common/Activities/Move/Move.cs @@ -150,7 +150,6 @@ namespace OpenRA.Mods.Common.Activities List EvalPath(BlockedByActor check) { var path = getPath(check).TakeWhile(a => a != mobile.ToCell).ToList(); - mobile.PathHash = HashList(path); return path; } diff --git a/OpenRA.Mods.Common/Traits/Mobile.cs b/OpenRA.Mods.Common/Traits/Mobile.cs index b4b238e4bc..6f6071251d 100644 --- a/OpenRA.Mods.Common/Traits/Mobile.cs +++ b/OpenRA.Mods.Common/Traits/Mobile.cs @@ -217,9 +217,6 @@ namespace OpenRA.Mods.Common.Traits [Sync] public CPos ToCell => toCell; - [Sync] - public int PathHash; // written by Move.EvalPath, to temporarily debug this crap. - public Locomotor Locomotor { get; private set; } public IPathFinder Pathfinder { get; private set; }