oops. thanks bob for pointing out that particular bit of fail

This commit is contained in:
Chris Forbes
2010-02-13 19:58:24 +13:00
parent 103d052586
commit 092eaf8d01

View File

@@ -31,7 +31,7 @@ namespace OpenRa.Traits
crates.RemoveAll(c => !c.IsInWorld);
var toSpawn = Math.Min(0, info.Minimum - crates.Count)
var toSpawn = Math.Max(0, info.Minimum - crates.Count)
+ (crates.Count < info.Maximum ? 1 : 0);
for (var n = 0; n < toSpawn; n++)