Author: mordante
Date: Sun May 27 16:48:38 2007
New Revision: 17904
URL: http://svn.gna.org/viewcvs/wesnoth?rev=17904&view=rev
Log:
removed support for deprecated heals=true
Modified:
trunk/src/terrain.cpp
Modified: trunk/src/terrain.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/terrain.cpp?rev=17904&r1=17903&r2=17904&view=diff
==============================================================================
--- trunk/src/terrain.cpp (original)
+++ trunk/src/terrain.cpp Sun May 27 16:48:38 2007
@@ -82,12 +82,8 @@
#endif
light_modification_ = atoi(cfg["light"].c_str());
- if (cfg["heals"] == "true") {
- 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;
- } else {
- heals_ = lexical_cast_default<int>(cfg["heals"], 0);
- }
+ heals_ = lexical_cast_default<int>(cfg["heals"], 0);
+
village_ = utils::string_bool(cfg["gives_income"]);
castle_ = utils::string_bool(cfg["recruit_onto"]);
keep_ = utils::string_bool(cfg["recruit_from"]);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits