fix single unit WML 'unit_description'
This commit is contained in:
parent
2afda917a0
commit
6877bfcc5d
1 changed files with 4 additions and 0 deletions
|
@ -877,6 +877,7 @@ void unit::read(const config& cfg)
|
|||
wassert(gamedata_ != NULL);
|
||||
description_ = cfg["unit_description"];
|
||||
custom_unit_description_ = cfg["user_description"];
|
||||
std::string custom_unit_desc = cfg["unit_description"];
|
||||
|
||||
underlying_description_ = cfg["description"];
|
||||
if(description_.empty()) {
|
||||
|
@ -986,6 +987,9 @@ void unit::read(const config& cfg)
|
|||
if(cfg["flying"] != "") {
|
||||
flying_ = utils::string_bool(cfg["flying"]);
|
||||
}
|
||||
if(custom_unit_desc != "") {
|
||||
cfg_["unit_description"] = custom_unit_desc;
|
||||
}
|
||||
if(!type_set) {
|
||||
for(config::const_child_itors range = cfg.child_range("attack");
|
||||
range.first != range.second; ++range.first) {
|
||||
|
|
Loading…
Add table
Reference in a new issue