Merge pull request #5838 from obrakmann/fix5378

Fix non-infantry support units starting on subcells. Fixes #5378
This commit is contained in:
Matthias Mailänder
2014-07-06 12:09:01 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ Also thanks to:
* Nukem * Nukem
* Okunev Yu Dmitry (xaionaro) * Okunev Yu Dmitry (xaionaro)
* Olaf van der Spek * Olaf van der Spek
* Oliver Brakmann
* Paolo Chiodi (paolochiodi) * Paolo Chiodi (paolochiodi)
* Paul Dovydaitis (pdovy) * Paul Dovydaitis (pdovy)
* Pavlos Touboulidis (pav) * Pavlos Touboulidis (pav)

View File

@@ -62,7 +62,7 @@ namespace OpenRA.Mods.RA
throw new InvalidOperationException("No cells available to spawn starting unit {0}".F(s)); throw new InvalidOperationException("No cells available to spawn starting unit {0}".F(s));
var cell = validCells.Random(w.SharedRandom); var cell = validCells.Random(w.SharedRandom);
var subCell = w.ActorMap.FreeSubCell(cell).Value; var subCell = mi.SharesCell ? w.ActorMap.FreeSubCell(cell).Value : SubCell.FullCell;
w.CreateActor(s.ToLowerInvariant(), new TypeDictionary w.CreateActor(s.ToLowerInvariant(), new TypeDictionary
{ {