From e2f9488d232d7a589f82ed759d41b7ba9c965b56 Mon Sep 17 00:00:00 2001 From: Arne Sund Date: Sat, 21 Feb 2015 11:19:29 +0100 Subject: We want each sector use its own distro --- planning/planning.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'planning/planning.cpp') diff --git a/planning/planning.cpp b/planning/planning.cpp index dafa3fa..b63c9cc 100644 --- a/planning/planning.cpp +++ b/planning/planning.cpp @@ -239,13 +239,21 @@ Inventory Planner::find_inventory(Switch from_where, int distro) } // The gap between Game and Sector 8 is unsurmountable. - if ((abs(distro_placements[distro]) <= 5) == (from_where.row >= 6)) { + if ((abs(distro_placements[distro]) <= 7) == (from_where.row >= 8) && + distro_placements[distro] < 0) { inv.vert_chasm_crossings = 1; } // So is the gap over the scene. - if ((abs(distro_placements[distro]) <= 13) == (from_where.row >= 14) && - from_where.num >= 2 && distro_placements[distro] < 0) { + if ((abs(distro_placements[distro]) <= 14) == (from_where.row >= 15)) { + inv.vert_chasm_crossings = 1; + } + + // Gaps between sectors + if ((abs(distro_placements[distro]) <= 22) == (from_where.row >= 23)) { + inv.vert_chasm_crossings = 1; + } + if ((abs(distro_placements[distro]) <= 31) == (from_where.row >= 32)) { inv.vert_chasm_crossings = 1; } -- cgit v1.2.3