WIP: Add a research tree view #1

Closed
williamjcm wants to merge 22 commits from research-tree into master
Showing only changes of commit 1cd91e1aaa - Show all commits

View file

@ -384,7 +384,7 @@ void ResearchTree::readEngineUnlocks(Containers::ArrayView<Int> engines, Contain
return; return;
} }
for(Int& engine : engines) { for(Int engine : engines) {
if(_engineNodes.find(engine) != _engineNodes.end()) { if(_engineNodes.find(engine) != _engineNodes.end()) {
_engineNodes.at(engine).setState(Node::State::Unlocked); _engineNodes.at(engine).setState(Node::State::Unlocked);
} }
@ -394,7 +394,7 @@ void ResearchTree::readEngineUnlocks(Containers::ArrayView<Int> engines, Contain
return; return;
} }
for(Int& gear : gears) { for(Int gear : gears) {
if(_engineNodes.find(gear) != _engineNodes.end()) { if(_engineNodes.find(gear) != _engineNodes.end()) {
_engineNodes.at(gear).setState(Node::State::Unlocked); _engineNodes.at(gear).setState(Node::State::Unlocked);
} }