mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Rename POI field Unknown905 to WMOGroupId (#28384)
This commit is contained in:
1
sql/updates/world/master/2022_10_25_00_world.sql
Normal file
1
sql/updates/world/master/2022_10_25_00_world.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `points_of_interest` CHANGE `Unknown905` `WMOGroupID` INT NOT NULL DEFAULT 0;
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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()))
|
||||
{
|
||||
|
||||
@@ -736,7 +736,7 @@ struct PointOfInterest
|
||||
uint32 Icon;
|
||||
uint32 Flags;
|
||||
uint32 Importance;
|
||||
uint32 Unknown905;
|
||||
int32 WMOGroupID;
|
||||
std::string Name;
|
||||
};
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user