mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 04:37:04 +00:00
[10775] Use separate vars to indicate whether reputation needs to be sent or needs to be saved.
This commit is contained in:
parent
7026dc0d1b
commit
10a1573c8e
3 changed files with 29 additions and 17 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue