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. 2
      RenX.Core/RenX_Functions.cpp
  3. 6
      RenX.Core/RenX_Server.cpp

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

2
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)
{ {
if (player->steamid != 0U)
return Jupiter::StringS::Format("0x%.16llX", player->steamid); 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)

6
RenX.Core/RenX_Server.cpp

@ -1376,9 +1376,6 @@ 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)
setUUID(player, this->formatSteamID(steamid));
else
this->setUUIDIfDifferent(player, calc_uuid(player)); this->setUUIDIfDifferent(player, calc_uuid(player));
} }
} }
@ -1411,9 +1408,6 @@ 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)
setUUID(player, this->formatSteamID(steamid));
else
this->setUUIDIfDifferent(player, calc_uuid(player)); this->setUUIDIfDifferent(player, calc_uuid(player));
} }
} }

Loading…
Cancel
Save