Skip to content

Commit

Permalink
rename kMaxSererNameLength -> kMaxServerNameLength
Browse files Browse the repository at this point in the history
  • Loading branch information
Outshynd committed Aug 12, 2022
1 parent 7231667 commit d722aae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Code/server/GameServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <Messages/NotifyPlayerJoined.h>
#include <console/ConsoleRegistry.h>

constexpr size_t kMaxSererNameLength = 128u;
constexpr size_t kMaxServerNameLength = 128u;

// -- Cvars --
Console::Setting uServerPort{"GameServer:uPort", "Which port to host the server on", 10578u};
Expand Down Expand Up @@ -278,10 +278,10 @@ void GameServer::UpdateInfo()
{
const String cServerName = sServerName.c_str();

if (cServerName.length() > kMaxSererNameLength)
if (cServerName.length() > kMaxServerNameLength)
{
spdlog::error("sServerName is longer than the limit of {} characters/bytes, and has been cut short", kMaxSererNameLength);
m_info.name = cServerName.substr(0U, kMaxSererNameLength);
spdlog::error("sServerName is longer than the limit of {} characters/bytes, and has been cut short", kMaxServerNameLength);
m_info.name = cServerName.substr(0U, kMaxServerNameLength);
}
else
{
Expand Down

0 comments on commit d722aae

Please sign in to comment.