Fix a deprecation warning and add a note about its future removal

This commit is contained in:
Alexander van Gessel 2010-07-06 14:40:30 +01:00
parent ff8498a0c0
commit 9e7f2cff6d

View file

@ -333,7 +333,8 @@ bool terrain_builder::rule_valid(const building_rule &rule) const
} else if (image::exists(s)){
continue;
}
if(s.find(".png") == std::string::npos){
// This warning can be removed after 1.9.2
if(s.find(".png") == std::string::npos && image::precached_file_exists(s + ".png")){
lg::wml_error << "Terrain image '" << s << "' misses the '.png' extension\n";
}
return false;