Reverted error message since the map generator...
...relies on dummy races for naming purpose.
This commit is contained in:
parent
f629d61870
commit
081adc019b
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue