Skip to content

Commit

Permalink
Fix war factory not opening its door properly
Browse files Browse the repository at this point in the history
  • Loading branch information
PunkPun committed Oct 21, 2023
1 parent c53b4fa commit 13780c1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#endregion

using System.Collections.Generic;
using System.Linq;
using OpenRA.Graphics;
using OpenRA.Mods.Common.Graphics;
using OpenRA.Traits;
Expand Down Expand Up @@ -61,7 +62,7 @@ void ITick.Tick(Actor self)
if (exitingActor == null)
return;

if (!exitingActor.IsInWorld || exitingActor.Location != openExit || exitingActor.CurrentActivity is not Mobile.ReturnToCellActivity)
if (!exitingActor.IsInWorld || exitingActor.Location != openExit || !exitingActor.CurrentActivity.ActivitiesImplementing<Mobile.ReturnToCellActivity>().Any())
{
desiredFrame = 0;
exitingActor = null;
Expand Down

0 comments on commit 13780c1

Please sign in to comment.