Disable target recalculation for bots.

This fixes bot-controlled units freezing when they
lock on to units that aren't visible.
This commit is contained in:
Paul Chote
2018-12-31 14:46:57 +00:00
committed by reaperrr
parent 4578ea09ba
commit 6fc291a634

View File

@@ -158,6 +158,10 @@ namespace OpenRA.Mods.Common.Activities
if (t.Type == TargetType.Invalid && t.Actor != null && t.Actor.ReplacedByActor != null)
t = Target.FromActor(t.Actor.ReplacedByActor);
// Bot-controlled units aren't yet capable of understanding visibility changes
if (viewer.IsBot)
return t;
if (t.Type == TargetType.Actor)
{
// Actor has been hidden under the fog