Fix bug with untranslated weapon ranges.
This commit is contained in:
parent
7fed294889
commit
f16b4179af
2 changed files with 3 additions and 3 deletions
|
@ -1210,11 +1210,11 @@ bool mouse_handler::attack_enemy(unit_map::iterator attacker, unit_map::iterator
|
|||
}
|
||||
atts << IMAGE_PREFIX << attw.icon() << COLUMN_SEPARATOR
|
||||
<< font::BOLD_TEXT << attw.name() << "\n" << att.damage << "-"
|
||||
<< att.num_blows << " " << attw.range() << " (" << att.chance_to_hit << "%)\n"
|
||||
<< att.num_blows << " " << gettext(attw.range().c_str()) << " (" << att.chance_to_hit << "%)\n"
|
||||
<< attw.weapon_specials() << special_pad
|
||||
<< COLUMN_SEPARATOR << _("vs") << COLUMN_SEPARATOR
|
||||
<< font::BOLD_TEXT << defw.name() << "\n" << def.damage << "-"
|
||||
<< def.num_blows << " " << defw.range() << " (" << def.chance_to_hit << "%)\n"
|
||||
<< def.num_blows << " " << gettext(defw.range().c_str()) << " (" << def.chance_to_hit << "%)\n"
|
||||
<< defw.weapon_specials() << special_pad << COLUMN_SEPARATOR
|
||||
<< IMAGE_PREFIX << defw.icon();
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ attack_type::attack_type(const config& cfg,const std::string& id, const std::str
|
|||
if(icon_.empty())
|
||||
icon_ = "attacks/" + id_ + ".png";
|
||||
|
||||
range_ = cfg["range"];
|
||||
range_ = cfg["range"].value();
|
||||
damage_ = atol(cfg["damage"].c_str());
|
||||
num_attacks_ = atol(cfg["number"].c_str());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue