Merge pull request #5838 from obrakmann/fix5378
Fix non-infantry support units starting on subcells. Fixes #5378
This commit is contained in:
1
AUTHORS
1
AUTHORS
@@ -61,6 +61,7 @@ Also thanks to:
|
||||
* Nukem
|
||||
* Okunev Yu Dmitry (xaionaro)
|
||||
* Olaf van der Spek
|
||||
* Oliver Brakmann
|
||||
* Paolo Chiodi (paolochiodi)
|
||||
* Paul Dovydaitis (pdovy)
|
||||
* Pavlos Touboulidis (pav)
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace OpenRA.Mods.RA
|
||||
throw new InvalidOperationException("No cells available to spawn starting unit {0}".F(s));
|
||||
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user