aboutsummaryrefslogtreecommitdiffstats
path: root/planning
diff options
context:
space:
mode:
authorArne Sund <arnels@samfundet.no>2015-02-21 11:20:27 +0100
committerArne Sund <arnels@samfundet.no>2015-02-21 11:20:27 +0100
commit88341b6250d1e42ade2c37d7f670c290f5f869fe (patch)
tree43df00cbef8b18652707395ffc88392b8e76ed40 /planning
parente2f9488d232d7a589f82ed759d41b7ba9c965b56 (diff)
Updated the switch placements for this year
Diffstat (limited to 'planning')
-rw-r--r--planning/planning.cpp25
1 files changed, 19 insertions, 6 deletions
diff --git a/planning/planning.cpp b/planning/planning.cpp
index b63c9cc..dd06179 100644
--- a/planning/planning.cpp
+++ b/planning/planning.cpp
@@ -328,14 +328,27 @@ void Planner::init_switches()
{
switches.clear();
for (unsigned i = 1; i <= NUM_ROWS; ++i) {
- // Game area.
- if (i >= 1 && i <= 5) {
+ // Sector 9 and 10
+ if (i == 1) {
+ switches.push_back(Switch(i, 2));
+ switches.push_back(Switch(i, 3));
+ }
+
+ if (i >= 2 && i <= 4) {
+ switches.push_back(Switch(i, 1));
+ switches.push_back(Switch(i, 2));
+ switches.push_back(Switch(i, 3));
+ }
+
+ if (i >= 5 && i <= 7) {
+ switches.push_back(Switch(i, 0));
+ switches.push_back(Switch(i, 1));
switches.push_back(Switch(i, 2));
switches.push_back(Switch(i, 3));
}
// Sectors 7 and 8.
- if (i >= 6 && i <= 13) {
+ if (i >= 8 && i <= 14) {
switches.push_back(Switch(i, 0));
switches.push_back(Switch(i, 1));
switches.push_back(Switch(i, 2));
@@ -343,13 +356,13 @@ void Planner::init_switches()
}
// Sector 5.
- if (i >= 14 && i <= 21) {
+ if (i >= 14 && i <= 22) {
switches.push_back(Switch(i, 0));
switches.push_back(Switch(i, 1));
}
// Sectors 3 and 4.
- if (i >= 22 && i <= 30) {
+ if (i >= 23 && i <= 30) {
switches.push_back(Switch(i, 0));
switches.push_back(Switch(i, 1));
switches.push_back(Switch(i, 2));
@@ -357,7 +370,7 @@ void Planner::init_switches()
}
// Sector 1.
- if (i >= 31 && i <= 41) {
+ if (i >= 31 && i <= 42) {
switches.push_back(Switch(i, 0));
switches.push_back(Switch(i, 1));
}