set up map loading at quest load time

This commit is contained in:
Martin Michelsen
2023-03-02 22:15:59 -08:00
parent be6cff7b89
commit f45516d359
4 changed files with 42 additions and 14 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ struct Lobby : public std::enable_shared_from_this<Lobby> {
uint8_t leader_id;
uint8_t max_clients;
uint32_t flags;
std::shared_ptr<const Quest> loading_quest;
std::shared_ptr<const Quest> quest;
std::array<std::shared_ptr<Client>, 12> clients;
// Keys in this map are client_id
std::unordered_map<size_t, std::weak_ptr<Client>> clients_to_add;