Per-player unit production. Also, fixed an interesting bug in Sequence.

This commit is contained in:
Bob
2009-10-30 04:03:37 +13:00
parent 8580ae0f78
commit 242fa717b6
6 changed files with 551 additions and 481 deletions

View File

@@ -21,11 +21,11 @@ namespace OpenRa.Game.Graphics
start = src.Start + int.Parse(e.GetAttribute("start"));
if (e.GetAttribute("length") == "*" || e.GetAttribute("end") == "*")
length = src.End - start;
length = src.End - start + 1;
else if (e.HasAttribute("length"))
length = int.Parse(e.GetAttribute("length"));
else if (e.HasAttribute("end"))
length = int.Parse(e.GetAttribute("end")) - start;
length = int.Parse(e.GetAttribute("end")) - int.Parse(e.GetAttribute("start"));
else
length = 1;
}