News:

If you are a developer, please build MegaGlest on your own and get in touch to contribute (or post your patches on the forums).

Main Menu

range ugrade dont show correctly

Started by Vixis, 22 April 2007, 14:47:54

Vixis

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).