missing parts

This commit is contained in:
Aokromes committed 2017-02-04 02:36:43 +01:00
1 parent 086c48586f
commit b083a07dfa
4 files changed
+4 -9

No files matched your search

+1 -6
View File
@@ -7299,6 +7299,7 @@ void Player::SetInGuild(uint32 guildId)
ApplyModFlag(PLAYER_FLAGS, PLAYER_FLAGS_GUILD_LEVEL_ENABLED, guildId != 0 && sWorld->getBoolConfig(CONFIG_GUILD_LEVELING_ENABLED));
SetUInt16Value(OBJECT_FIELD_TYPE, 1, guildId != 0);
sWorld->UpdateCharacterGuildId(GetGUID(), guildId);
}
ObjectGuid::LowType Player::GetGuildIdFromCharacterInfo(ObjectGuid guid)
@@ -27279,12 +27280,6 @@ std::string Player::GetCoordsMapAreaAndZoneString() const
return str.str();
}
void Player::SetInGuild(uint32 guildId)
{
SetUInt32Value(PLAYER_GUILDID, guildId);
sWorld->UpdateCharacterGuildId(GetGUID(), guildId);
}
Guild* Player::GetGuild()
{
uint32 guildId = GetGuildId();
@@ -457,7 +457,7 @@ void WorldSession::HandleCharCreateOpcode(WorldPacket& recvData)
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_SUM_CHARS);
stmt->setUInt32(0, GetAccountId());
queryCallback.SetNextQuery(CharacterDatabase.AsyncQuery(stmt));.
queryCallback.SetNextQuery(CharacterDatabase.AsyncQuery(stmt));
})
.WithChainingPreparedCallback([this, createInfo](QueryCallback& queryCallback, PreparedQueryResult result)
{
+1 -1
View File
@@ -208,7 +208,7 @@ ObjectGuid::LowType WorldSession::GetGUIDLow() const
}
/// Send a packet to the client
void WorldSession::SendPacket(WorldPacket* packet, bool forced /*= false*/)
void WorldSession::SendPacket(WorldPacket const* packet, bool forced /*= false*/)
{
if (!m_Socket)
return;
+1 -1
View File
@@ -292,7 +292,7 @@ class TC_GAME_API WorldSession
void SendAddonsInfo();
bool IsAddonRegistered(const std::string& prefix) const;
void SendPacket(WorldPacket* packet, bool forced = false);
void SendPacket(WorldPacket const* packet, bool forced = false);
void SendNotification(const char *format, ...) ATTR_PRINTF(2, 3);
void SendNotification(uint32 string_id, ...);
void SendPetNameInvalid(uint32 error, std::string const& name, DeclinedName *declinedName);