Browse Source

Players now have an empty UUID when a player not using steam joins the game while using the default uuid system.

pull/3/head
JustinAJ 9 years ago
parent
commit
131fd09f51
  1. BIN
      Release/Plugins/RenX.Core.lib
  2. 4
      RenX.Core/RenX_Functions.cpp
  3. 10
      RenX.Core/RenX_Server.cpp

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

4
RenX.Core/RenX_Functions.cpp

@ -879,7 +879,9 @@ std::chrono::milliseconds RenX::getServerTime(const RenX::PlayerInfo *player)
Jupiter::StringS RenX::default_uuid_func(RenX::PlayerInfo *player) Jupiter::StringS RenX::default_uuid_func(RenX::PlayerInfo *player)
{ {
return Jupiter::StringS::Format("0x%.16llX", player->steamid); if (player->steamid != 0U)
return Jupiter::StringS::Format("0x%.16llX", player->steamid);
return Jupiter::StringS();
} }
double RenX::getKillDeathRatio(const RenX::PlayerInfo *player, bool includeSuicides) double RenX::getKillDeathRatio(const RenX::PlayerInfo *player, bool includeSuicides)

10
RenX.Core/RenX_Server.cpp

@ -1376,10 +1376,7 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
if (steamid != 0) if (steamid != 0)
{ {
player->steamid = steamid; player->steamid = steamid;
if (calc_uuid == RenX::default_uuid_func) this->setUUIDIfDifferent(player, calc_uuid(player));
setUUID(player, this->formatSteamID(steamid));
else
this->setUUIDIfDifferent(player, calc_uuid(player));
} }
} }
@ -1411,10 +1408,7 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
if (steamid != 0) if (steamid != 0)
{ {
player->steamid = steamid; player->steamid = steamid;
if (calc_uuid == RenX::default_uuid_func) this->setUUIDIfDifferent(player, calc_uuid(player));
setUUID(player, this->formatSteamID(steamid));
else
this->setUUIDIfDifferent(player, calc_uuid(player));
} }
} }

Loading…
Cancel
Save