diff --git a/src/network/game_setup.cpp b/src/network/game_setup.cpp index 297ae2b54..1888148b4 100644 --- a/src/network/game_setup.cpp +++ b/src/network/game_setup.cpp @@ -52,7 +52,7 @@ GameSetup::~GameSetup() void GameSetup::addPlayer(NetworkPlayerProfile* profile) { m_players.push_back(profile); - Log::info("GameSetup", "New player in the game setup. Race id : %d.", + Log::info("GameSetup", "New player in the game setup. Player id : %d.", profile->getGlobalPlayerId()); } // addPlayer diff --git a/src/network/protocol_manager.hpp b/src/network/protocol_manager.hpp index cca866f81..c61a507b8 100644 --- a/src/network/protocol_manager.hpp +++ b/src/network/protocol_manager.hpp @@ -78,18 +78,26 @@ public: Protocol *getProtocol() { return m_protocol; } }; // class ProtocolRequest; -// ---------------------------------------------------------------------------- +// ============================================================================ /** \struct ProtocolRequest * \brief Used to pass the event to protocols that need it */ -typedef struct EventProcessingInfo +struct EventProcessingInfo { + /** The event to process. */ Event* m_event; + + /** Arrival time of the event. Used to time out events that are not + * handled in time (e.g. because the receiving protocol is not running).*/ double m_arrival_time; + + /** The list of protocol ids to which this event can be + * sent to. */ std::vector m_protocols_ids; + } EventProcessingInfo; -// ---------------------------------------------------------------------------- +// ============================================================================ /** \class ProtocolManager * \brief Manages the protocols at runtime. *