mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Merge branch 'master' into 310
Conflicts: src/game/Player.cpp src/game/Player.h src/game/Unit.cpp
This commit is contained in:
commit
963aed5e0b
49 changed files with 1124 additions and 986 deletions
|
|
@ -518,7 +518,7 @@ void WorldSession::HandleCharDeleteOpcode( WorldPacket & recv_data )
|
|||
return;
|
||||
|
||||
std::string IP_str = GetRemoteAddress();
|
||||
sLog.outBasic("Account: %d (IP: %s) Delete Character:[%s] (guid:%u)",GetAccountId(),IP_str.c_str(),name.c_str(),GUID_LOPART(guid));
|
||||
sLog.outBasic("Account: %d (IP: %s) Delete Character:[%s] (guid: %u)",GetAccountId(),IP_str.c_str(),name.c_str(),GUID_LOPART(guid));
|
||||
sLog.outChar("Account: %d (IP: %s) Delete Character:[%s] (guid: %u)",GetAccountId(),IP_str.c_str(),name.c_str(),GUID_LOPART(guid));
|
||||
|
||||
if(sLog.IsOutCharDump()) // optimize GetPlayerDump call
|
||||
|
|
@ -859,15 +859,7 @@ void WorldSession::HandleSetFactionAtWar( WorldPacket & recv_data )
|
|||
recv_data >> repListID;
|
||||
recv_data >> flag;
|
||||
|
||||
FactionStateList::iterator itr = GetPlayer()->m_factions.find(repListID);
|
||||
if (itr == GetPlayer()->m_factions.end())
|
||||
return;
|
||||
|
||||
// always invisible or hidden faction can't change war state
|
||||
if(itr->second.Flags & (FACTION_FLAG_INVISIBLE_FORCED|FACTION_FLAG_HIDDEN) )
|
||||
return;
|
||||
|
||||
GetPlayer()->SetFactionAtWar(&itr->second,flag);
|
||||
GetPlayer()->GetReputationMgr().SetAtWar(repListID,flag);
|
||||
}
|
||||
|
||||
//I think this function is never used :/ I dunno, but i guess this opcode not exists
|
||||
|
|
@ -875,7 +867,7 @@ void WorldSession::HandleSetFactionCheat( WorldPacket & /*recv_data*/ )
|
|||
{
|
||||
//CHECK_PACKET_SIZE(recv_data,4+4);
|
||||
|
||||
//sLog.outDebug("WORLD SESSION: HandleSetFactionCheat");
|
||||
sLog.outError("WORLD SESSION: HandleSetFactionCheat, not expected call, please report.");
|
||||
/*
|
||||
uint32 FactionID;
|
||||
uint32 Standing;
|
||||
|
|
@ -895,7 +887,7 @@ void WorldSession::HandleSetFactionCheat( WorldPacket & /*recv_data*/ )
|
|||
}
|
||||
}
|
||||
*/
|
||||
GetPlayer()->UpdateReputation();
|
||||
GetPlayer()->GetReputationMgr().SendStates();
|
||||
}
|
||||
|
||||
void WorldSession::HandleMeetingStoneInfo( WorldPacket & /*recv_data*/ )
|
||||
|
|
@ -960,11 +952,7 @@ void WorldSession::HandleSetWatchedFactionInactiveOpcode(WorldPacket & recv_data
|
|||
uint8 inactive;
|
||||
recv_data >> replistid >> inactive;
|
||||
|
||||
FactionStateList::iterator itr = _player->m_factions.find(replistid);
|
||||
if (itr == _player->m_factions.end())
|
||||
return;
|
||||
|
||||
_player->SetFactionInactive(&itr->second, inactive);
|
||||
_player->GetReputationMgr().SetInactive(replistid, inactive);
|
||||
}
|
||||
|
||||
void WorldSession::HandleToggleHelmOpcode( WorldPacket & /*recv_data*/ )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue