diff options
author | Arne Sund <arnels@samfundet.no> | 2015-02-21 11:19:29 +0100 |
---|---|---|
committer | Arne Sund <arnels@samfundet.no> | 2015-02-21 11:19:29 +0100 |
commit | e2f9488d232d7a589f82ed759d41b7ba9c965b56 (patch) | |
tree | 7ae88e47c8f8c589bfc1292a31bc3d5c71f909a4 /planning | |
parent | e74613906396d1000999818d06043a5f02b2a6d6 (diff) |
We want each sector use its own distro
Diffstat (limited to 'planning')
-rw-r--r-- | planning/planning.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
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; } |