Remove log object from server, server-side logging is deactivated. Pass NULL as log object to game.

This commit is contained in:
lotodore
2012-01-02 21:04:49 +00:00
parent aa6fdf1de1
commit df35ea550f
4 changed files with 5 additions and 15 deletions
+1 -3
View File
@@ -37,13 +37,12 @@ class PlayerInterface;
class ConfigFile;
struct GameData;
class Game;
class Log;
class ServerGame : public boost::enable_shared_from_this<ServerGame>
{
public:
ServerGame(
boost::shared_ptr<ServerLobbyThread> lobbyThread, u_int32_t id, const std::string &name, const std::string &pwd, const GameData &gameData, unsigned adminPlayerId, GuiInterface &gui, ConfigFile &playerConfig, Log &serverLog);
boost::shared_ptr<ServerLobbyThread> lobbyThread, u_int32_t id, const std::string &name, const std::string &pwd, const GameData &gameData, unsigned adminPlayerId, GuiInterface &gui, ConfigFile &playerConfig);
virtual ~ServerGame();
void Init();
@@ -207,7 +206,6 @@ private:
const std::string m_name;
const std::string m_password;
ConfigFile &m_playerConfig;
Log &m_serverLog;
unsigned m_gameNum;
unsigned m_curPetitionId;
boost::asio::deadline_timer m_voteKickTimer;