From f69f24573269d09556663c9500045ffd7f5e72b8 Mon Sep 17 00:00:00 2001 From: Anuradha Dissanayake Date: Sat, 16 Mar 2013 12:26:37 +1300 Subject: [PATCH] Allow planned constructions orthogonal to stairs --- plugins/automaterial.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/automaterial.cpp b/plugins/automaterial.cpp index 712565ac0..3c38df215 100644 --- a/plugins/automaterial.cpp +++ b/plugins/automaterial.cpp @@ -439,7 +439,9 @@ static bool is_valid_building_site(building_site &site, bool orthogonal_check, b } else if (orthogonal_check) { - if (shape != tiletype_shape::RAMP && shape_basic != tiletype_shape_basic::Floor) + if (shape != tiletype_shape::RAMP && + shape_basic != tiletype_shape_basic::Floor && + shape_basic != tiletype_shape_basic::Stair) return false; } else