Merge pull request #5160 from porzell/bleed
* Fixed Bug #5072: RenderLandingCraft doesn't do an IsInMap check
This commit is contained in:
@@ -46,7 +46,7 @@ namespace OpenRA.Mods.RA.Render
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
return cargo.CurrentAdjacentCells
|
return cargo.CurrentAdjacentCells
|
||||||
.Any(c => info.OpenTerrainTypes.Contains(self.World.GetTerrainType(c)));
|
.Any(c => self.World.Map.IsInMap(c) && info.OpenTerrainTypes.Contains(self.World.GetTerrainType(c)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Open()
|
void Open()
|
||||||
|
|||||||
Reference in New Issue
Block a user