Browse Source

Removed local firstGame variable in favor of server-specific firstGame variable.

pull/3/head
JustinAJ 10 years ago
parent
commit
6c4e3692b3
  1. 4
      RenX.Medals/RenX_Medals.cpp
  2. 1
      RenX.Medals/RenX_Medals.h

4
RenX.Medals/RenX_Medals.cpp

@ -137,9 +137,7 @@ void RenX_MedalsPlugin::RenX_OnJoin(RenX::Server *server, const RenX::PlayerInfo
void RenX_MedalsPlugin::RenX_OnGameOver(RenX::Server *server, RenX::WinType winType, RenX::TeamType team, int gScore, int nScore) void RenX_MedalsPlugin::RenX_OnGameOver(RenX::Server *server, RenX::WinType winType, RenX::TeamType team, int gScore, int nScore)
{ {
if (firstGame) // No unfair medals for the first game! :D if (server->isFirstGame() == false) // No unfair medals for the first game! :D
firstGame = false;
else
{ {
if (server->players.size() == 0) return; if (server->players.size() == 0) return;
Jupiter::DLList<RenX::PlayerInfo>::Node *n = server->players.getNode(0); Jupiter::DLList<RenX::PlayerInfo>::Node *n = server->players.getNode(0);

1
RenX.Medals/RenX_Medals.h

@ -55,7 +55,6 @@ public: // Jupiter::Plugin
const Jupiter::ReadableString &getName() override { return name; } const Jupiter::ReadableString &getName() override { return name; }
public: public:
bool firstGame = true;
time_t killCongratDelay; time_t killCongratDelay;
time_t vehicleKillCongratDelay; time_t vehicleKillCongratDelay;
time_t kdrCongratDelay; time_t kdrCongratDelay;

Loading…
Cancel
Save