Support time_of_day=liminal in location filters.

This is actually equivalent to time_of_day=neutral, but is added so
people don't get confused that it doesn't work.
This commit is contained in:
Celtic Minstrel 2018-04-03 19:28:00 -04:00
parent e2bc73b27b
commit 2746f5c2d8

View file

@ -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;
}
}