Commit fb1f963f authored by Rick Gruber-Riemer's avatar Rick Gruber-Riemer

Fix for issue #111: Roof can get bigger than height

parent 046f2ac2
......@@ -775,6 +775,8 @@ class Building(object):
# a bit of sanity
if proxy_roof_height == 0. and self.roof_complex:
proxy_roof_height = calc_level_height_for_settlement_type(self.zone.settlement_type)
if proxy_total_height > 0.: # a bit of sanity
proxy_roof_height = min(proxy_roof_height, proxy_total_height / 2)
if proxy_body_height > 0. and proxy_total_height == 0.:
pass # proxy_total_height = proxy_roof_height + proxy_body_height + self.min_height
elif proxy_body_height == 0. and proxy_total_height > 0.:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment