fix for a VERY old bug related to wrong display of attack range

see https://forum.megaglest.org/index.php?topic=9567.0
this is a bug found  in glest 2.0 !!!
This commit is contained in:
titiger 2014-10-01 00:33:47 +02:00
parent e39fb8e8e4
commit ea1be62242
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ string AttackCommandType::getDesc(const TotalUpgrade *totalUpgrade, bool transla
//attack distance
str+= lang.getString("AttackDistance",(translatedValue == true ? "" : "english"))+": "+intToStr(attackSkillType->getAttackRange());
if(totalUpgrade->getAttackRange(attackSkillType) != 0) {
str+= "+"+intToStr(totalUpgrade->getAttackRange(attackSkillType) != 0);
str+= "+"+intToStr(totalUpgrade->getAttackRange(attackSkillType));
}
str+="\n";