Core/Misc: Rename POI field Unknown905 to WMOGroupId (#28384)

This commit is contained in:
Meji
2022-10-25 21:57:52 +02:00
committed by GitHub
parent e46e61d3a8
commit 25fd57c768
6 changed files with 7 additions and 6 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE `points_of_interest` CHANGE `Unknown905` `WMOGroupID` INT NOT NULL DEFAULT 0;

View File

@@ -289,7 +289,7 @@ void PlayerMenu::SendPointOfInterest(uint32 id) const
packet.Pos = pointOfInterest->Pos;
packet.Icon = pointOfInterest->Icon;
packet.Importance = pointOfInterest->Importance;
packet.Unknown905 = pointOfInterest->Unknown905;
packet.WMOGroupID = pointOfInterest->WMOGroupID;
_session->SendPacket(packet.Write());
}

View File

@@ -8353,7 +8353,7 @@ void ObjectMgr::LoadPointsOfInterest()
uint32 count = 0;
// 0 1 2 3 4 5 6 7 8
QueryResult result = WorldDatabase.Query("SELECT ID, PositionX, PositionY, PositionZ, Icon, Flags, Importance, Name, Unknown905 FROM points_of_interest");
QueryResult result = WorldDatabase.Query("SELECT ID, PositionX, PositionY, PositionZ, Icon, Flags, Importance, Name, WMOGroupID FROM points_of_interest");
if (!result)
{
@@ -8374,7 +8374,7 @@ void ObjectMgr::LoadPointsOfInterest()
pointOfInterest.Flags = fields[5].GetUInt32();
pointOfInterest.Importance = fields[6].GetUInt32();
pointOfInterest.Name = fields[7].GetString();
pointOfInterest.Unknown905 = fields[8].GetInt32();
pointOfInterest.WMOGroupID = fields[8].GetInt32();
if (!Trinity::IsValidMapCoord(pointOfInterest.Pos.GetPositionX(), pointOfInterest.Pos.GetPositionY(), pointOfInterest.Pos.GetPositionZ()))
{

View File

@@ -736,7 +736,7 @@ struct PointOfInterest
uint32 Icon;
uint32 Flags;
uint32 Importance;
uint32 Unknown905;
int32 WMOGroupID;
std::string Name;
};

View File

@@ -192,7 +192,7 @@ WorldPacket const* GossipPOI::Write()
_worldPacket << Pos;
_worldPacket << int32(Icon);
_worldPacket << int32(Importance);
_worldPacket << int32(Unknown905);
_worldPacket << int32(WMOGroupID);
_worldPacket.WriteBits(Flags, 14);
_worldPacket.WriteBits(Name.length(), 6);
_worldPacket.FlushBits();

View File

@@ -210,7 +210,7 @@ namespace WorldPackets
TaggedPosition<Position::XYZ> Pos;
int32 Icon = 0;
int32 Importance = 0;
int32 Unknown905 = 0;
int32 WMOGroupID = 0;
std::string Name;
};