[9732] Remove another case hardcoded set skill step.

We not have currently way set proper set skill step at loading,
but this not required, because important only for new learned rank have different step.
Also drop outdated (as tested) comment.
This commit is contained in:
VladimirMangos 2010-04-12 12:14:40 +04:00
parent c7095fb3ed
commit 6a50185cfd
2 changed files with 2 additions and 7 deletions

View file

@ -20924,12 +20924,7 @@ void Player::_LoadSkills(QueryResult *result)
continue; continue;
} }
// enable unlearn button for primary professions only SetUInt32Value(PLAYER_SKILL_INDEX(count), MAKE_PAIR32(skill,0));
if (pSkill->categoryId == SKILL_CATEGORY_PROFESSION)
SetUInt32Value(PLAYER_SKILL_INDEX(count), MAKE_PAIR32(skill,1));
else
SetUInt32Value(PLAYER_SKILL_INDEX(count), MAKE_PAIR32(skill,0));
SetUInt32Value(PLAYER_SKILL_VALUE_INDEX(count),MAKE_SKILL_VALUE(value, max)); SetUInt32Value(PLAYER_SKILL_VALUE_INDEX(count),MAKE_SKILL_VALUE(value, max));
SetUInt32Value(PLAYER_SKILL_BONUS_INDEX(count),0); SetUInt32Value(PLAYER_SKILL_BONUS_INDEX(count),0);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9731" #define REVISION_NR "9732"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__