aboutsummaryrefslogtreecommitdiffstats
path: root/planning
diff options
context:
space:
mode:
authorArne Sund <arnels@stortinget.samfundet.no>2015-02-26 00:32:57 +0100
committerArne Sund <arnels@stortinget.samfundet.no>2015-02-26 00:32:57 +0100
commitae09fd9af7bc2a5215a1713747b62f9b8fa8335c (patch)
tree56cd36d34608453d676cf5b50ef7544e2159fa53 /planning
parent1e91699727307a9a248e3b5be85c8e0b29424eaf (diff)
This should be the final version of the row placements for 2015
Diffstat (limited to 'planning')
-rw-r--r--planning/planning.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/planning/planning.cpp b/planning/planning.cpp
index 1cc5b98..f4816c6 100644
--- a/planning/planning.cpp
+++ b/planning/planning.cpp
@@ -137,7 +137,7 @@ struct VerticalGap {
};
// 3, 4m, 4m, 4m gaps (0.6m, 1.6m, 1.6m, 1.6m extra).
vector<VerticalGap> vertical_gaps = {
- { 7, 17 },
+ { 8, 17 },
{ 14, 17 },
{ 22, 17 },
{ 31, 17 },
@@ -239,7 +239,7 @@ Inventory Planner::find_inventory(Switch from_where, int distro)
}
// The gap between Game and Sector 8 is unsurmountable.
- if ((abs(distro_placements[distro]) <= 7) == (from_where.row >= 8) &&
+ if ((abs(distro_placements[distro]) <= 8) == (from_where.row >= 9) &&
distro_placements[distro] < 0) {
inv.vert_chasm_crossings = 1;
}
@@ -330,17 +330,21 @@ void Planner::init_switches()
for (unsigned i = 1; i <= NUM_ROWS; ++i) {
// Sector 9 and 10
if (i == 1) {
+ switches.push_back(Switch(i, 2));
+ }
+
+ if (i == 2) {
switches.push_back(Switch(i, 2));
switches.push_back(Switch(i, 3));
}
- if (i >= 2 && i <= 4) {
+ if (i >= 3 && i <= 5) {
switches.push_back(Switch(i, 1));
switches.push_back(Switch(i, 2));
switches.push_back(Switch(i, 3));
}
- if (i >= 5 && i <= 7) {
+ if (i >= 6 && i <= 8) {
switches.push_back(Switch(i, 0));
switches.push_back(Switch(i, 1));
switches.push_back(Switch(i, 2));
@@ -348,7 +352,7 @@ void Planner::init_switches()
}
// Sectors 7 and 8.
- if (i >= 8 && i <= 14) {
+ if (i >= 9 && i <= 14) {
switches.push_back(Switch(i, 0));
switches.push_back(Switch(i, 1));
switches.push_back(Switch(i, 2));