Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
BUILD_CONFIGURATION: Non-Steam Release

name: Windows build
runs-on: windows-2016
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 3 additions & 4 deletions source/game/design/subsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ struct TemplateBlock {
};

bool conditionMatches(const SubsystemDef* cur, std::vector<std::pair<int,std::string>>& conditions) {
bool passesAll = true;
foreach(c, conditions) {
int type = c->first;
bool negation = false;
Expand Down Expand Up @@ -458,14 +457,14 @@ bool conditionMatches(const SubsystemDef* cur, std::vector<std::pair<int,std::st

if(!negation) {
if(!pass)
passesAll = false;
return false;
}
else {
if(pass)
passesAll = false;
return false;
}
}
return passesAll;
return true;
}

void parseConditions(const std::string& value, std::vector<std::pair<int,std::string>>& conditions) {
Expand Down