Core: Some comment corrections to previous commit
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user