Skip to content

Commit

Permalink
Support time_of_day=liminal in location filters.
Browse files Browse the repository at this point in the history
This is actually equivalent to time_of_day=neutral, but is added so
people don't get confused that it doesn't work.
  • Loading branch information
CelticMinstrel committed Oct 24, 2018
1 parent e2bc73b commit 2746f5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/terrain/filter.cpp
Expand Up @@ -282,7 +282,8 @@ bool terrain_filter::match_internal(const map_location& loc, const unit* ref_uni
if(std::find(vals.begin(),vals.end(),unit_type::ALIGNMENT::enum_to_string(unit_type::ALIGNMENT::LAWFUL)) == vals.end()) {
return false;
}
} else if(std::find(vals.begin(),vals.end(),unit_type::ALIGNMENT::enum_to_string(unit_type::ALIGNMENT::NEUTRAL)) == vals.end()) {
} else if(std::find(vals.begin(),vals.end(),unit_type::ALIGNMENT::enum_to_string(unit_type::ALIGNMENT::NEUTRAL)) == vals.end() &&
std::find(vals.begin(),vals.end(),unit_type::ALIGNMENT::enum_to_string(unit_type::ALIGNMENT::LIMINAL)) == vals.end()) {
return false;
}
}
Expand Down

0 comments on commit 2746f5c

Please sign in to comment.