Reverted error message since the map generator...

...relies on dummy races for naming purpose.
This commit is contained in:
Guillaume Melquiond 2009-07-16 20:57:21 +00:00
parent f629d61870
commit 081adc019b

View file

@ -157,12 +157,14 @@ unit_race::unit_race(const config& cfg) :
*/
if(id_.empty()) {
// This code is only for compatibility with old race defs.
lg::wml_error << "[race] '" << cfg["name"] << "' is missing its id, this behaviour is deprecated and will break in 1.7.4\n";
//lg::wml_error << "[race] '" << cfg["name"] << "' is missing its id, this behaviour is deprecated and will break in 1.7.4\n";
// Error message is commented because parts of the engine are using only Markov's chains and not full races.
id_ = (cfg["name"]);
}
if(plural_name_.empty()) {
// This code is only for compatibility with old race defs.
lg::wml_error << "[race] '" << cfg["name"] << "' is missing its plural_name, this behaviour is deprecated and will break in 1.7.4\n";
//lg::wml_error << "[race] '" << cfg["name"] << "' is missing its plural_name, this behaviour is deprecated and will break in 1.7.4\n";
// Error message is commented because parts of the engine are using only Markov's chains and not full races.
plural_name_ = (cfg["name"]);
}
// use "name" if "male_name" or "female_name" aren't available