From aa6a75a14ba4a2b3a81f622c344d41d5b1347ad3 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 22 Jun 2020 00:17:09 +0200 Subject: [PATCH] fixed CanPlace ignoring bounds of covered tiles --- TouchyTickets/ParkMap.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TouchyTickets/ParkMap.cs b/TouchyTickets/ParkMap.cs index e3dcb4f..e86d252 100644 --- a/TouchyTickets/ParkMap.cs +++ b/TouchyTickets/ParkMap.cs @@ -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; }