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

@@ -36,6 +36,7 @@ namespace OpenRA.Mods.RA.Activities
if( NextActivity != null ) return NextActivity;
var harv = self.traits.Get<Harvester>();
harv.LastHarvestedCell = self.Location;
if( harv.IsFull )
return new DeliverResources { NextActivity = NextActivity };