mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-02 22:03:52 +00:00
We need some way to keep track of everyone who needs a lockout
This prevents exploits but is also rather annoying for people who leave
This commit is contained in:
parent
bd96d676be
commit
8a8e922f46
@ -6,6 +6,7 @@
|
||||
|
||||
#include "../common/servertalk.h"
|
||||
#include "../common/global_tasks.h"
|
||||
#include "cliententry.h"
|
||||
|
||||
class ClientListEntry;
|
||||
|
||||
@ -29,6 +30,9 @@ public:
|
||||
members.push_back({name, cle, leader});
|
||||
if (leader)
|
||||
leader_name = name;
|
||||
auto it = std::find(char_ids.begin(), char_ids.end(), cle->CharID());
|
||||
if (it == char_ids.end())
|
||||
char_ids.push_back(cle->CharID());
|
||||
}
|
||||
void MemberLeftGame(ClientListEntry *cle);
|
||||
inline const std::string &GetLeaderName() const { return leader_name; }
|
||||
@ -59,6 +63,7 @@ private:
|
||||
bool locked;
|
||||
std::string leader_name;
|
||||
std::vector<SharedTaskMember> members;
|
||||
std::vector<int> char_ids; // every char id of someone to be locked out, different in case they leave/removed
|
||||
ClientTaskInformation task_state; // book keeping
|
||||
|
||||
friend class SharedTaskManager;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user