Menu

#9 range ugrade dont show correctly

open
nobody
None
5
2007-04-23
2007-04-23
Vixis
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.