terrain.heals now uses the new error messages and sets an expriation date.
also changed the construction to use 0 instead of false
This commit is contained in:
parent
686991a7c1
commit
1812b5a9ef
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ terrain_type::terrain_type() : symbol_image_("void"),
|
||||||
def_type_(1, t_translation::VOID_TERRAIN),
|
def_type_(1, t_translation::VOID_TERRAIN),
|
||||||
union_type_(1, t_translation::VOID_TERRAIN),
|
union_type_(1, t_translation::VOID_TERRAIN),
|
||||||
height_adjust_(0), submerge_(0.0), light_modification_(0),
|
height_adjust_(0), submerge_(0.0), light_modification_(0),
|
||||||
heals_(false), village_(false), castle_(false), keep_(false)
|
heals_(0), village_(false), castle_(false), keep_(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
terrain_type::terrain_type(const config& cfg)
|
terrain_type::terrain_type(const config& cfg)
|
||||||
|
@ -98,7 +98,7 @@ terrain_type::terrain_type(const config& cfg)
|
||||||
light_modification_ = atoi(cfg["light"].c_str());
|
light_modification_ = atoi(cfg["light"].c_str());
|
||||||
|
|
||||||
if (cfg["heals"] == "true") {
|
if (cfg["heals"] == "true") {
|
||||||
LOG_STREAM(err, config) << "terrain " << id() << " uses heals=true which is deprecated (use number)\n";
|
lg::wml_error << "terrain " << id() << " uses heals=true which is deprecated (use number), support will be removed in version 1.3.4\n";
|
||||||
heals_ = 8;
|
heals_ = 8;
|
||||||
} else {
|
} else {
|
||||||
heals_ = lexical_cast_default<int>(cfg["heals"], 0);
|
heals_ = lexical_cast_default<int>(cfg["heals"], 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue