Skip to content

Commit

Permalink
[10297] Drop CMSG_SET_FACTION_CHEAT support.
Browse files Browse the repository at this point in the history
No reported long time and now finaly broken by spillover rep changes.
  • Loading branch information
VladimirMangos committed Jul 31, 2010
1 parent 3f4f217 commit 9a18be6
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 36 deletions.
26 changes: 0 additions & 26 deletions src/game/CharacterHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,32 +808,6 @@ void WorldSession::HandleSetFactionAtWar( WorldPacket & recv_data )
GetPlayer()->GetReputationMgr().SetAtWar(repListID, flag);
}

//I think this function is never used :/ I dunno, but i guess this opcode not exists
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();
}

void WorldSession::HandleMeetingStoneInfo( WorldPacket & /*recv_data*/ )
{
DEBUG_LOG( "WORLD: Received CMSG_MEETING_STONE_INFO" );
Expand Down
2 changes: 1 addition & 1 deletion src/game/Opcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ OpcodeHandler opcodeTable[NUM_MSG_TYPES] =
/*0x123*/ { "SMSG_SET_FACTION_VISIBLE", STATUS_NEVER, &WorldSession::Handle_ServerSide },
/*0x124*/ { "SMSG_SET_FACTION_STANDING", STATUS_NEVER, &WorldSession::Handle_ServerSide },
/*0x125*/ { "CMSG_SET_FACTION_ATWAR", STATUS_LOGGEDIN, &WorldSession::HandleSetFactionAtWar },
/*0x126*/ { "CMSG_SET_FACTION_CHEAT", STATUS_LOGGEDIN, &WorldSession::HandleSetFactionCheat },
/*0x126*/ { "CMSG_SET_FACTION_CHEAT", STATUS_NEVER, &WorldSession::Handle_Deprecated },
/*0x127*/ { "SMSG_SET_PROFICIENCY", STATUS_NEVER, &WorldSession::Handle_ServerSide },
/*0x128*/ { "CMSG_SET_ACTION_BUTTON", STATUS_LOGGEDIN, &WorldSession::HandleSetActionButtonOpcode },
/*0x129*/ { "SMSG_ACTION_BUTTONS", STATUS_NEVER, &WorldSession::Handle_ServerSide },
Expand Down
6 changes: 0 additions & 6 deletions src/game/ReputationMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,6 @@ void ReputationMgr::SendInitialReputations()
m_player->SendDirectMessage(&data);
}

void ReputationMgr::SendStates() const
{
for(FactionStateList::const_iterator itr = m_factions.begin(); itr != m_factions.end(); ++itr)
SendState(&(itr->second));
}

void ReputationMgr::SendVisible(FactionState const* faction) const
{
if(m_player->GetSession()->PlayerLoading())
Expand Down
1 change: 0 additions & 1 deletion src/game/ReputationMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ class ReputationMgr
void SendInitialReputations();
void SendForceReactions();
void SendState(FactionState const* faction) const;
void SendStates() const;

private: // internal helper functions
void Initialize();
Expand Down
1 change: 0 additions & 1 deletion src/game/WorldSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ class MANGOS_DLL_SPEC WorldSession
void HandleAreaTriggerOpcode(WorldPacket& recvPacket);

void HandleSetFactionAtWar( WorldPacket & recv_data );
void HandleSetFactionCheat( WorldPacket & recv_data );
void HandleSetWatchedFactionOpcode(WorldPacket & recv_data);
void HandleSetFactionInactiveOpcode(WorldPacket & recv_data);

Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10296"
#define REVISION_NR "10297"
#endif // __REVISION_NR_H__

0 comments on commit 9a18be6

Please sign in to comment.