Don't apply alpha optimizations unless --alpha is paseed (#187)
Closes #164
This commit is contained in:
parent
e473958377
commit
68db304a2a
2 changed files with 3 additions and 7 deletions
|
|
@ -250,11 +250,6 @@ impl Options {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn apply_preset_4(mut self) -> Self {
|
fn apply_preset_4(mut self) -> Self {
|
||||||
self.alphas.insert(AlphaOptim::White);
|
|
||||||
self.alphas.insert(AlphaOptim::Up);
|
|
||||||
self.alphas.insert(AlphaOptim::Down);
|
|
||||||
self.alphas.insert(AlphaOptim::Left);
|
|
||||||
self.alphas.insert(AlphaOptim::Right);
|
|
||||||
self.apply_preset_3()
|
self.apply_preset_3()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -285,9 +280,9 @@ impl Default for Options {
|
||||||
for i in 0..4 {
|
for i in 0..4 {
|
||||||
strategies.insert(i);
|
strategies.insert(i);
|
||||||
}
|
}
|
||||||
|
// We always need NoOp to be present
|
||||||
let mut alphas = HashSet::new();
|
let mut alphas = HashSet::new();
|
||||||
alphas.insert(colors::AlphaOptim::NoOp);
|
alphas.insert(AlphaOptim::NoOp);
|
||||||
alphas.insert(colors::AlphaOptim::Black);
|
|
||||||
|
|
||||||
Options {
|
Options {
|
||||||
backup: false,
|
backup: false,
|
||||||
|
|
|
||||||
|
|
@ -363,6 +363,7 @@ fn parse_opts_into_struct(
|
||||||
};
|
};
|
||||||
|
|
||||||
if matches.is_present("alpha") {
|
if matches.is_present("alpha") {
|
||||||
|
opts.alphas.insert(AlphaOptim::Black);
|
||||||
opts.alphas.insert(AlphaOptim::White);
|
opts.alphas.insert(AlphaOptim::White);
|
||||||
opts.alphas.insert(AlphaOptim::Up);
|
opts.alphas.insert(AlphaOptim::Up);
|
||||||
opts.alphas.insert(AlphaOptim::Down);
|
opts.alphas.insert(AlphaOptim::Down);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue