[10775] Use separate vars to indicate whether reputation needs to be sent or needs to be saved.

This commit is contained in:
Lynx3d 2010-11-21 23:46:01 +01:00
parent 7026dc0d1b
commit 10a1573c8e
3 changed files with 29 additions and 17 deletions

View file

@ -43,7 +43,8 @@ struct FactionState
RepListID ReputationListID;
uint32 Flags;
int32 Standing;
bool Changed;
bool needSend;
bool needSave;
};
typedef std::map<RepListID,FactionState> FactionStateList;
@ -121,7 +122,7 @@ class ReputationMgr
public: // senders
void SendInitialReputations();
void SendForceReactions();
void SendState(FactionState const* faction) const;
void SendState(FactionState const* faction);
private: // internal helper functions
void Initialize();