Fix compilation
This commit is contained in:
parent
252c210156
commit
4966a64711
@ -181,9 +181,9 @@ namespace Components
|
||||
Game::client_t* client = &Game::svs_clients[num];
|
||||
|
||||
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);
|
||||
}
|
||||
|
@ -437,7 +437,7 @@ namespace Components
|
||||
ucmd.rightmove = g_botai[i].right;
|
||||
ucmd.weapon = g_botai[i].weapon;
|
||||
|
||||
client->deltaMessage = client->outgoingSequence - 1;
|
||||
client->deltaMessage = client->netchan.outgoingSequence - 1;
|
||||
|
||||
Game::SV_ClientThink(client, &ucmd);
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ namespace Components
|
||||
|
||||
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)
|
||||
ip.erase(ip.begin() + ip.find_first_of(":"), ip.end()); // erase port
|
||||
Game::Scr_AddString(ip.data());
|
||||
|
@ -152,7 +152,7 @@ namespace Components
|
||||
{
|
||||
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);
|
||||
list.append(Utils::String::VA(" %llX", strtoull(info.get("realsteamId").data(), nullptr, 16)));
|
||||
|
@ -387,7 +387,7 @@ namespace Components
|
||||
|
||||
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;
|
||||
}
|
||||
|
@ -606,7 +606,7 @@ namespace Game
|
||||
{
|
||||
if (client->state < 5)
|
||||
{
|
||||
Components::Network::SendCommand(client->addr, "error", reason);
|
||||
Components::Network::SendCommand(client->netchan.remoteAddress, "error", reason);
|
||||
}
|
||||
|
||||
SV_KickClient(client, reason.data());
|
||||
|
Loading…
Reference in New Issue
Block a user