fixed CanPlace ignoring bounds of covered tiles

This commit is contained in:
Ellpeck 2020-06-22 00:17:09 +02:00
parent 4742d90ba5
commit aa6a75a14b

View file

@ -172,9 +172,9 @@ namespace TouchyTickets {
}
public bool CanPlace(Point position, Attraction attraction) {
if (!this.IsInBounds(position))
return false;
foreach (var offset in attraction.Type.GetCoveredTiles()) {
if (!this.IsInBounds(position + offset))
return false;
if (this.GetAttractionAt(position + offset) != null)
return false;
}