MegaGlest Forum

Archives (read only) => Vanilla Glest => Bug report => Topic started by: Vixis on 22 April 2007, 14:47:54

Title: range ugrade dont show correctly
Post by: Vixis on 22 April 2007, 14:47:54
Glest version 2.0.0.
After upgrade that increase attack range, explanation in attack command button show always +1.
It seems that in command_type.cpp is misspelling in line 207:

    //attack distance

    str+= lang.get("AttackDistance")+": "+intToStr(attackSkillType->getAttackRange());

   if(totalUpgrade->getAttackRange()!=0){

        str+= "+"+intToStr(totalUpgrade->getAttackRange()!=0);

   }

    str+="\n";


There is unnecessary second !=0.
If we have attack range upgrade, we have always true (+1).