From 6a50185cfd93405d9a11bcf7899207e287b6dd67 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 12 Apr 2010 12:14:40 +0400 Subject: [PATCH] [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. --- src/game/Player.cpp | 7 +------ src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 7b6a9fbc8..0b4dfd0f0 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -20924,12 +20924,7 @@ void Player::_LoadSkills(QueryResult *result) continue; } - // enable unlearn button for primary professions only - 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_INDEX(count), MAKE_PAIR32(skill,0)); SetUInt32Value(PLAYER_SKILL_VALUE_INDEX(count),MAKE_SKILL_VALUE(value, max)); SetUInt32Value(PLAYER_SKILL_BONUS_INDEX(count),0); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 923722082..6dc5f0401 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9731" + #define REVISION_NR "9732" #endif // __REVISION_NR_H__