Fix RCS1257, RCS1258, RCS1261, RCS1262, RCS1265, RCS1266, RCS1267
This commit is contained in:
committed by
Gustas Kažukauskas
parent
a324af1afd
commit
1b2c119b58
@@ -163,7 +163,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
// Scripted cargo aircraft must turn to default position before unloading.
|
||||
// TODO: pass facing through UnloadCargo instead.
|
||||
if (aircraft != null)
|
||||
transport.QueueActivity(new Land(transport, Target.FromCell(transport.World, entryPath.Last()), WDist.FromCells(dropRange)));
|
||||
transport.QueueActivity(new Land(transport, Target.FromCell(transport.World, entryPath[^1]), WDist.FromCells(dropRange)));
|
||||
|
||||
if (cargo != null)
|
||||
transport.QueueActivity(new UnloadCargo(transport, WDist.FromCells(dropRange)));
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
get
|
||||
{
|
||||
if (rp.Path.Count > 0)
|
||||
return rp.Path.Last();
|
||||
return rp.Path[^1];
|
||||
|
||||
var exit = Self.NearestExitOrDefault(Self.CenterPosition);
|
||||
if (exit != null)
|
||||
|
||||
Reference in New Issue
Block a user