aboutsummaryrefslogtreecommitdiffstats
path: root/planning
diff options
context:
space:
mode:
authorArne Sund <arnels@samfundet.no>2015-02-21 11:19:29 +0100
committerArne Sund <arnels@samfundet.no>2015-02-21 11:19:29 +0100
commite2f9488d232d7a589f82ed759d41b7ba9c965b56 (patch)
tree7ae88e47c8f8c589bfc1292a31bc3d5c71f909a4 /planning
parente74613906396d1000999818d06043a5f02b2a6d6 (diff)
We want each sector use its own distro
Diffstat (limited to 'planning')
-rw-r--r--planning/planning.cpp14
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;
}