mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 00:48:59 +00:00
stopped reporting deprecated terrain format when no terrain used in filter
This commit is contained in:
parent
b4718d9964
commit
073941d7eb
@ -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…
x
Reference in New Issue
Block a user