Core: Some cosmetic changes and minor optimizations
This commit is contained in:
@@ -1035,25 +1035,6 @@ void WorldSession::HandleSetFactionAtWar(WorldPacket & recv_data)
|
||||
void WorldSession::HandleSetFactionCheat(WorldPacket & /*recv_data*/)
|
||||
{
|
||||
sLog->outError("WORLD SESSION: HandleSetFactionCheat, not expected call, please report.");
|
||||
/*
|
||||
uint32 FactionID;
|
||||
uint32 Standing;
|
||||
|
||||
recv_data >> FactionID;
|
||||
recv_data >> Standing;
|
||||
|
||||
std::list<struct Factions>::iterator itr;
|
||||
|
||||
for (itr = GetPlayer()->factions.begin(); itr != GetPlayer()->factions.end(); ++itr)
|
||||
{
|
||||
if (itr->ReputationListID == FactionID)
|
||||
{
|
||||
itr->Standing += Standing;
|
||||
itr->Flags = (itr->Flags | 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
*/
|
||||
GetPlayer()->GetReputationMgr().SendStates();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user