diff options
author | Nay <dnpd.dd@gmail.com> | 2012-09-05 19:13:22 +0100 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2012-09-05 19:13:22 +0100 |
commit | 3b91bf8932278c32210deea54ee412edb5499ce9 (patch) | |
tree | 68bb708a0d657002b79db607eb8b541caa579cdf | |
parent | db819bbdbe091e97a8451bf9dc9d74b4c5899a41 (diff) |
Core: Some comment corrections to previous commit
4 files changed, 6 insertions, 4 deletions
diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql index 5396b23857c..718ff3dba20 100644 --- a/sql/base/characters_database.sql +++ b/sql/base/characters_database.sql @@ -516,7 +516,7 @@ DROP TABLE IF EXISTS `character_cuf_profiles`; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_cuf_profiles` ( `guid` int(10) unsigned NOT NULL COMMENT 'Character Guid', - `id` tinyint(3) unsigned NOT NULL COMMENT 'Profile Id (0-5)', + `id` tinyint(3) unsigned NOT NULL COMMENT 'Profile Id (0-4)', `name` varchar(12) NOT NULL COMMENT 'Profile Name', `frameHeight` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Frame Height', `frameWidth` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Frame Width', diff --git a/sql/updates/characters/2012_09_04_00_characters_character_cuf_profiles_434.sql b/sql/updates/characters/2012_09_04_00_characters_character_cuf_profiles_434.sql index df0c825e67a..394c0912601 100644 --- a/sql/updates/characters/2012_09_04_00_characters_character_cuf_profiles_434.sql +++ b/sql/updates/characters/2012_09_04_00_characters_character_cuf_profiles_434.sql @@ -1,7 +1,7 @@ DROP TABLE IF EXISTS `character_cuf_profiles`; CREATE TABLE IF NOT EXISTS `character_cuf_profiles` ( `guid` int(10) unsigned NOT NULL COMMENT 'Character Guid', - `id` tinyint(3) unsigned NOT NULL COMMENT 'Profile Id (0-5)', + `id` tinyint(3) unsigned NOT NULL COMMENT 'Profile Id (0-4)', `name` varchar(12) NOT NULL COMMENT 'Profile Name', `frameHeight` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Frame Height', `frameWidth` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Frame Width', diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 8ac3ba358dd..2c350956c0a 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -19294,7 +19294,7 @@ void Player::_SaveCUFProfiles(SQLTransaction& trans) stmt->setUInt16(4, _CUFProfiles[i]->FrameWidth); stmt->setUInt8(5, _CUFProfiles[i]->SortBy); stmt->setUInt8(6, _CUFProfiles[i]->HealthText); - stmt->setUInt32(7, _CUFProfiles[i]->BoolOptions.to_ulong()); // 24 of 31 fields used, fits in an int + stmt->setUInt32(7, _CUFProfiles[i]->BoolOptions.to_ulong()); // 27 of 32 fields used, fits in an int stmt->setUInt8(8, _CUFProfiles[i]->Unk146); stmt->setUInt8(9, _CUFProfiles[i]->Unk147); stmt->setUInt8(10, _CUFProfiles[i]->Unk148); diff --git a/src/server/game/Entities/Player/Player.h b/src/server/game/Entities/Player/Player.h index 89c56165390..41b01036ef5 100755 --- a/src/server/game/Entities/Player/Player.h +++ b/src/server/game/Entities/Player/Player.h @@ -182,6 +182,8 @@ enum CUFBoolOptions CUF_UNK_156, CUF_UNK_157, + // Two of the unks is _LOCKED and _SHOWN + CUF_BOOL_OPTIONS_COUNT, }; @@ -233,7 +235,7 @@ struct CUFProfile std::bitset<CUF_BOOL_OPTIONS_COUNT> BoolOptions; - // More fields can be added to BoolOptions without changing DB schema (up to 31, currently 24) + // More fields can be added to BoolOptions without changing DB schema (up to 32, currently 27) }; struct SpellCooldown |