mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-21 20:27:02 +00:00
fix typo
This commit is contained in:
parent
55a1209c75
commit
f3b4143698
@ -78,7 +78,7 @@ void HandleRequests(mg_connection* connection, int request, void* request_data)
|
|||||||
reply.message = data.empty() ? "{\"error\":\"No Players Online\"}" : data.dump();
|
reply.message = data.empty() ? "{\"error\":\"No Players Online\"}" : data.dump();
|
||||||
} else if (mg_match(http_msg->uri, mg_str((root_path + "teams").c_str()), NULL)) {
|
} else if (mg_match(http_msg->uri, mg_str((root_path + "teams").c_str()), NULL)) {
|
||||||
// Get Teams
|
// Get Teams
|
||||||
const json data = Game::playerContainer.GetTeamComtainer();
|
const json data = Game::playerContainer.GetTeamContainer();
|
||||||
|
|
||||||
reply.status = data.empty() ? 204 : 200;
|
reply.status = data.empty() ? 204 : 200;
|
||||||
reply.message = data.empty() ? "{\"error\":\"No Teams Online\"}" : data.dump();
|
reply.message = data.empty() ? "{\"error\":\"No Teams Online\"}" : data.dump();
|
||||||
|
@ -102,7 +102,7 @@ public:
|
|||||||
LWOOBJID GetId(const std::u16string& playerName);
|
LWOOBJID GetId(const std::u16string& playerName);
|
||||||
uint32_t GetMaxNumberOfBestFriends() { return m_MaxNumberOfBestFriends; }
|
uint32_t GetMaxNumberOfBestFriends() { return m_MaxNumberOfBestFriends; }
|
||||||
uint32_t GetMaxNumberOfFriends() { return m_MaxNumberOfFriends; }
|
uint32_t GetMaxNumberOfFriends() { return m_MaxNumberOfFriends; }
|
||||||
const TeamContainer& GetTeamComtainer() { return teamContainer; }
|
const TeamContainer& GetTeamContainer() { return teamContainer; }
|
||||||
std::vector<TeamData*>& GetTeamsMut() { return teamContainer.mTeams; };
|
std::vector<TeamData*>& GetTeamsMut() { return teamContainer.mTeams; };
|
||||||
const std::vector<TeamData*>& GetTeams() { return GetTeamsMut(); };
|
const std::vector<TeamData*>& GetTeams() { return GetTeamsMut(); };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user