From 0ddbf6549b38871338aca9dffaf6f4b6c1b07b71 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Sun, 25 Feb 2007 08:34:16 +1100 Subject: [PATCH] fix small mistake in Building::conceals --- lily/skyline.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lily/skyline.cc b/lily/skyline.cc index 8c47df70b8..9da2606edb 100644 --- a/lily/skyline.cc +++ b/lily/skyline.cc @@ -166,7 +166,7 @@ Building::conceals (Building const &other, Real x) const /* their slopes were not equal, so there is an intersection point */ Real i = intersection_x (other); - return (i < x && slope_ > other.slope_) + return (i <= x && slope_ > other.slope_) || (i > x && slope_ < other.slope_); } -- 2.39.5