Author Topic: range ugrade dont show correctly  (Read 2553 times)

Vixis

  • Guest
range ugrade dont show correctly
« 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).
« Last Edit: 1 January 1970, 00:00:00 by Vixis »

 

anything