Prevent an infinite loop when planes go out of ammo and all airfields are gone
This commit is contained in:
@@ -112,7 +112,11 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
new FlyCircleTimed(self, plane.Info.NumberOfTicksToVerifyAvailableAirport),
|
new FlyCircleTimed(self, plane.Info.NumberOfTicksToVerifyAvailableAirport),
|
||||||
this);
|
this);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
// Prevent an infinite loop in case we'd return to the activity that called ReturnToBase in the first place. Go idle instead.
|
||||||
|
Cancel(self);
|
||||||
return NextActivity;
|
return NextActivity;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Activity> landingProcedures = new List<Activity>();
|
List<Activity> landingProcedures = new List<Activity>();
|
||||||
|
|||||||
Reference in New Issue
Block a user