stopped reporting deprecated terrain format when no terrain used in filter

This commit is contained in:
John W. C. McNabb 2007-01-31 00:28:03 +00:00
parent b4718d9964
commit 073941d7eb

View file

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