mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 16:43:47 +00:00
feat(Core/DBLayer): replace char const* to std::string_view (#10211)
* feat(Core/DBLayer): replace `char const*` to `std::string_view` * CString * 1 * chore(Core/Misc): code cleanup * cl * db fix * fmt style sql * to fmt * py * del old * 1 * 2 * 3 * 1 * 1
This commit is contained in:
@@ -98,13 +98,13 @@ void FormationMgr::LoadCreatureFormations()
|
||||
|
||||
//Load group member data
|
||||
FormationInfo group_member;
|
||||
group_member.leaderGUID = fields[0].GetUInt32();
|
||||
ObjectGuid::LowType const memberGUID = fields[1].GetUInt32();
|
||||
float const follow_dist = fields[2].GetFloat();
|
||||
float const follow_angle = fields[3].GetFloat() * (static_cast<float>(M_PI) / 180);
|
||||
group_member.groupAI = fields[4].GetUInt16();
|
||||
group_member.point_1 = fields[5].GetUInt16();
|
||||
group_member.point_2 = fields[6].GetUInt16();
|
||||
group_member.leaderGUID = fields[0].Get<uint32>();
|
||||
ObjectGuid::LowType const memberGUID = fields[1].Get<uint32>();
|
||||
float const follow_dist = fields[2].Get<float>();
|
||||
float const follow_angle = fields[3].Get<float>() * (static_cast<float>(M_PI) / 180);
|
||||
group_member.groupAI = fields[4].Get<uint16>();
|
||||
group_member.point_1 = fields[5].Get<uint16>();
|
||||
group_member.point_2 = fields[6].Get<uint16>();
|
||||
|
||||
//If creature is group leader we may skip loading of dist/angle
|
||||
if (group_member.leaderGUID != memberGUID)
|
||||
|
||||
Reference in New Issue
Block a user