only print warning if heals=true, not any non-zero value

This commit is contained in:
Dominic Bolin 2006-05-07 23:47:56 +00:00
parent 23e1523f59
commit e33805092b

View file

@ -71,7 +71,7 @@ terrain_type::terrain_type(const config& cfg)
light_modification_ = atoi(cfg["light"].c_str());
if (utils::string_bool(cfg["heals"])) {
if (cfg["heals"] == "true") {
LOG_STREAM(err, config) << "terrain " << id() << " uses heals=true which is deprecated (use number)\n";
heals_ = 8;
} else {