Fix compilation

This commit is contained in:
Diavolo 2021-09-08 11:19:30 +02:00
parent 252c210156
commit 4966a64711
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
6 changed files with 7 additions and 7 deletions

View File

@ -181,9 +181,9 @@ namespace Components
Game::client_t* client = &Game::svs_clients[num]; Game::client_t* client = &Game::svs_clients[num];
SteamID guid; SteamID guid;
guid.bits = client->steamid; guid.bits = client->steamID;
Bans::InsertBan({ guid, client->addr.ip }); Bans::InsertBan({ guid, client->netchan.remoteAddress.ip });
Game::SV_KickClientError(client, reason); Game::SV_KickClientError(client, reason);
} }

View File

@ -437,7 +437,7 @@ namespace Components
ucmd.rightmove = g_botai[i].right; ucmd.rightmove = g_botai[i].right;
ucmd.weapon = g_botai[i].weapon; ucmd.weapon = g_botai[i].weapon;
client->deltaMessage = client->outgoingSequence - 1; client->deltaMessage = client->netchan.outgoingSequence - 1;
Game::SV_ClientThink(client, &ucmd); Game::SV_ClientThink(client, &ucmd);
} }

View File

@ -134,7 +134,7 @@ namespace Components
if (client->state >= 3) if (client->state >= 3)
{ {
std::string ip = Game::NET_AdrToString(client->addr); std::string ip = Game::NET_AdrToString(client->netchan.remoteAddress);
if (ip.find_first_of(":") != std::string::npos) if (ip.find_first_of(":") != std::string::npos)
ip.erase(ip.begin() + ip.find_first_of(":"), ip.end()); // erase port ip.erase(ip.begin() + ip.find_first_of(":"), ip.end()); // erase port
Game::Scr_AddString(ip.data()); Game::Scr_AddString(ip.data());

View File

@ -152,7 +152,7 @@ namespace Components
{ {
if (Game::svs_clients[i].state >= 3) if (Game::svs_clients[i].state >= 3)
{ {
list.append(Utils::String::VA(" %llX", Game::svs_clients[i].steamid)); list.append(Utils::String::VA(" %llX", Game::svs_clients[i].steamID));
Utils::InfoString info(Game::svs_clients[i].connectInfoString); Utils::InfoString info(Game::svs_clients[i].connectInfoString);
list.append(Utils::String::VA(" %llX", strtoull(info.get("realsteamId").data(), nullptr, 16))); list.append(Utils::String::VA(" %llX", strtoull(info.get("realsteamId").data(), nullptr, 16)));

View File

@ -387,7 +387,7 @@ namespace Components
if (client->state >= 3) if (client->state >= 3)
{ {
if (address.getIP().full == Network::Address(client->addr).getIP().full) if (address.getIP().full == Network::Address(client->netchan.remoteAddress).getIP().full)
{ {
return client; return client;
} }

View File

@ -606,7 +606,7 @@ namespace Game
{ {
if (client->state < 5) if (client->state < 5)
{ {
Components::Network::SendCommand(client->addr, "error", reason); Components::Network::SendCommand(client->netchan.remoteAddress, "error", reason);
} }
SV_KickClient(client, reason.data()); SV_KickClient(client, reason.data());