Harvesters return to last used field

This commit is contained in:
Paul Chote
2010-06-16 19:22:59 +12:00
parent 5822caf7a8
commit f0a2bf128c
4 changed files with 13 additions and 2 deletions

View File

@@ -58,6 +58,8 @@ namespace OpenRA.Mods.Cnc
harv.QueueActivity( new CallFunc( () => harvester.Visible = true, false ) );
harv.QueueActivity( new Drag(endDock, startDock, 12) );
harv.QueueActivity( new CallFunc( () => dockedHarv = null, false ) );
if (harvester.LastHarvestedCell != int2.Zero)
harv.QueueActivity( new Move(harvester.LastHarvestedCell, 5) );
harv.QueueActivity( new Harvest() );
}) );
}