remove TODO list, use bug-tracker

This commit is contained in:
Matthias Mailänder
2012-07-28 00:04:48 +02:00
committed by Chris Forbes
parent 8e2d712688
commit 81f035904e
7 changed files with 21 additions and 40 deletions

View File

@@ -24,6 +24,7 @@ namespace OpenRA.Mods.RA
public readonly string[] Types = { };
public readonly int UnloadFacing = 0;
public readonly string[] InitialUnits = { };
public readonly int minimalUnloadAltitude = 0;
public object Create( ActorInitializer init ) { return new Cargo( init, this ); }
}
@@ -92,7 +93,7 @@ namespace OpenRA.Mods.RA
// Cannot unload mid-air
var move = self.TraitOrDefault<IMove>();
if (move != null && move.Altitude > 0)
if (move != null && move.Altitude > info.minimalUnloadAltitude)
return false;
// Todo: Check if there is a free tile to unload to
@@ -106,7 +107,7 @@ namespace OpenRA.Mods.RA
// Cannot load mid-air
var move = self.TraitOrDefault<IMove>();
return move == null || move.Altitude == 0;
return move == null || move.Altitude == info.minimalUnloadAltitude;
}
public string CursorForOrder(Actor self, Order order)