Core/Items: Defined "unk" field in HotfixInfo
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE hotfix_data ADD `hotfixDate` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `unk`;
|
||||
UPDATE `hotfix_data` SET `hotfixDate`=FROM_UNIXTIME(`unk`);
|
||||
ALTER TABLE `hotfix_data` DROP PRIMARY KEY;
|
||||
ALTER TABLE `hotfix_data` ADD PRIMARY KEY (`entry`,`type`,`hotfixDate`);
|
||||
ALTER TABLE `hotfix_data` DROP `unk`;
|
||||
@@ -9038,7 +9038,7 @@ void ObjectMgr::LoadHotfixData()
|
||||
{
|
||||
uint32 oldMSTime = getMSTime();
|
||||
|
||||
QueryResult result = WorldDatabase.Query("SELECT entry, type, unk FROM hotfix_data");
|
||||
QueryResult result = WorldDatabase.Query("SELECT entry, type, UNIX_TIMESTAMP(hotixDate) FROM hotfix_data");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
@@ -9058,7 +9058,7 @@ void ObjectMgr::LoadHotfixData()
|
||||
HotfixInfo info;
|
||||
info.Entry = fields[0].GetUInt32();
|
||||
info.Type = fields[1].GetUInt32();
|
||||
info.Unk = fields[2].GetUInt32();
|
||||
info.Timestamp = fields[2].GetUInt32();
|
||||
|
||||
_hotfixData.push_back(info);
|
||||
++count;
|
||||
|
||||
@@ -589,7 +589,7 @@ typedef UNORDERED_MAP<uint32, DungeonEncounterList> DungeonEncounterMap;
|
||||
struct HotfixInfo
|
||||
{
|
||||
uint32 Type;
|
||||
uint32 Unk;
|
||||
uint32 Timestamp;
|
||||
uint32 Entry;
|
||||
};
|
||||
|
||||
|
||||
@@ -977,7 +977,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
|
||||
for (uint32 i = 0; i < hotfix.size(); ++i)
|
||||
{
|
||||
data << uint32(hotfix[i].Type);
|
||||
data << uint32(hotfix[i].Unk);
|
||||
data << uint32(hotfix[i].Timestamp);
|
||||
data << uint32(hotfix[i].Entry);
|
||||
}
|
||||
SendPacket(&data);
|
||||
|
||||
Reference in New Issue
Block a user