From 410d0796c3d068c68d4b8d8114670a07a89d3aa0 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 19 Apr 2019 18:08:19 +0100 Subject: [PATCH] Disable bot logic while reloading game saves. --- OpenRA.Mods.Common/Traits/Player/ModularBot.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Player/ModularBot.cs b/OpenRA.Mods.Common/Traits/Player/ModularBot.cs index d073d63181..327fdf7b89 100644 --- a/OpenRA.Mods.Common/Traits/Player/ModularBot.cs +++ b/OpenRA.Mods.Common/Traits/Player/ModularBot.cs @@ -83,7 +83,7 @@ namespace OpenRA.Mods.Common.Traits void ITick.Tick(Actor self) { - if (!IsEnabled) + if (!IsEnabled || self.World.IsLoadingGameSave) return; using (new PerfSample("bot_tick")) @@ -103,7 +103,7 @@ namespace OpenRA.Mods.Common.Traits void INotifyDamage.Damaged(Actor self, AttackInfo e) { - if (!IsEnabled) + if (!IsEnabled || self.World.IsLoadingGameSave) return; using (new PerfSample("bot_attack_response"))