stopped reporting deprecated terrain format when no terrain used in filter
This commit is contained in:
parent
b4718d9964
commit
073941d7eb
1 changed files with 1 additions and 2 deletions
|
@ -593,9 +593,8 @@ bool gamemap::terrain_matches_filter(const gamemap::location& loc, const config&
|
|||
}
|
||||
*/
|
||||
#ifdef TERRAIN_TRANSLATION_COMPATIBLE
|
||||
if(terrain_format == 0 || terrain_format == -1) {
|
||||
if(terrain_format == 0 || terrain_format == -1 && !cfg["terrain"].empty()) {
|
||||
std::cerr << "Warning deprecated terrain format in filter_location \n";
|
||||
|
||||
const std::string& terrain = cfg["terrain"];
|
||||
// Any of these may be a CSV
|
||||
std::string terrain_letter;
|
||||
|
|
Loading…
Add table
Reference in a new issue