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:
parent
e2bc73b27b
commit
2746f5c2d8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue