Browse Source

Added formatNamePrefix field to RenX::PlayerInfo.

pull/3/head
JustinAJ 10 years ago
parent
commit
ab4462e97a
  1. BIN
      Release/Plugins/RenX.Core.lib
  2. 3
      RenX.Core/RenX_Functions.cpp
  3. 1
      RenX.Core/RenX_PlayerInfo.h
  4. 3
      RenX.Core/RenX_Server.cpp

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

3
RenX.Core/RenX_Functions.cpp

@ -545,8 +545,7 @@ void RenX::initTranslations(Jupiter::INIFile &translationsFile)
Jupiter::String RenX::getFormattedPlayerName(const RenX::PlayerInfo *player)
{
Jupiter::String r;
if (player->isBot) r += IRCCOLOR "05[B]";
Jupiter::String r = player->formatNamePrefix;
r += IRCCOLOR;
r += RenX::getTeamColor(player->team);
r += player->name;

1
RenX.Core/RenX_PlayerInfo.h

@ -61,6 +61,7 @@ namespace RenX
unsigned int loses = 0;
unsigned int beaconPlacements = 0;
mutable Jupiter::StringS formatNamePrefix;
mutable int access = 0;
mutable Jupiter::INIFile varData; // This will be replaced later with a more dedicated type.
};

3
RenX.Core/RenX_Server.cpp

@ -649,7 +649,8 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line)
r = new RenX::PlayerInfo();
r->id = id;
r->name = name;
r->isBot = isBot;
if (r->isBot = isBot)
r->formatNamePrefix = IRCCOLOR "05[B]";
r->joinTime = time(nullptr);
r->steamid = steamid;
r->ip = ip;

Loading…
Cancel
Save