Fix crash with patrols. Add more room for the Allied base

This commit is contained in:
Scott_NZ
2012-12-16 22:44:45 +13:00
parent 3b2190d720
commit 3ab04e4c30
3 changed files with 18 additions and 15 deletions

View File

@@ -237,7 +237,7 @@ namespace OpenRA.Mods.RA.Missions
currentPoint = (currentPoint + 1) % points.Length; currentPoint = (currentPoint + 1) % points.Length;
leader.QueueActivity(new AttackMove.AttackMoveActivity(leader, new Move.Move(points[currentPoint], 0))); leader.QueueActivity(new AttackMove.AttackMoveActivity(leader, new Move.Move(points[currentPoint], 0)));
leader.QueueActivity(new Wait(50)); leader.QueueActivity(new Wait(50));
foreach (var follower in patrolActors.Skip(1)) foreach (var follower in patrolActors.Skip(1).Where(a => !a.IsDead() && a.IsInWorld))
{ {
follower.QueueActivity(new Wait(world.SharedRandom.Next(0, 25))); follower.QueueActivity(new Wait(world.SharedRandom.Next(0, 25)));
follower.QueueActivity(new AttackMove.AttackMoveActivity(follower, new Move.Move(points[currentPoint], 0))); follower.QueueActivity(new AttackMove.AttackMoveActivity(follower, new Move.Move(points[currentPoint], 0)));

Binary file not shown.

View File

@@ -108,8 +108,8 @@ Actors:
Actor41: t12 Actor41: t12
Location: 73,69 Location: 73,69
Owner: Neutral Owner: Neutral
Actor44: tc05 Actor44: t13
Location: 92,80 Location: 83,78
Owner: Neutral Owner: Neutral
Actor47: v01 Actor47: v01
Location: 70,84 Location: 70,84
@@ -708,9 +708,6 @@ Actors:
Actor216: mine Actor216: mine
Location: 103,57 Location: 103,57
Owner: Neutral Owner: Neutral
Actor217: fenc
Location: 89,77
Owner: Soviets
Actor218: fenc Actor218: fenc
Location: 81,65 Location: 81,65
Owner: Soviets Owner: Soviets
@@ -720,15 +717,9 @@ Actors:
Actor220: fenc Actor220: fenc
Location: 81,67 Location: 81,67
Owner: Soviets Owner: Soviets
Actor114: fenc
Location: 87,77
Owner: Soviets
Actor221: 4tnk Actor221: 4tnk
Location: 39,46 Location: 39,46
Owner: Soviets Owner: Soviets
Actor54: fenc
Location: 86,77
Owner: Soviets
Actor228: e1 Actor228: e1
Location: 102,34 Location: 102,34
Owner: Soviets Owner: Soviets
@@ -747,9 +738,6 @@ Actors:
Actor223: 4tnk Actor223: 4tnk
Location: 43,57 Location: 43,57
Owner: Soviets Owner: Soviets
Actor115: fenc
Location: 88,77
Owner: Soviets
Actor52: hpad Actor52: hpad
Location: 83,65 Location: 83,65
Owner: Soviets Owner: Soviets
@@ -1605,6 +1593,21 @@ Actors:
ReinforcementsUnloadPoint: waypoint ReinforcementsUnloadPoint: waypoint
Location: 92,103 Location: 92,103
Owner: Neutral Owner: Neutral
Actor474: mine
Location: 95,86
Owner: Neutral
Actor480: fenc
Location: 87,74
Owner: Soviets
Actor485: fenc
Location: 86,74
Owner: Soviets
Actor486: fenc
Location: 85,74
Owner: Soviets
Actor487: fenc
Location: 84,74
Owner: Soviets
Smudges: Smudges: