diff --git a/src/network/protocols/kart_update_protocol.cpp b/src/network/protocols/kart_update_protocol.cpp index fa1618bc7..3f90507ac 100644 --- a/src/network/protocols/kart_update_protocol.cpp +++ b/src/network/protocols/kart_update_protocol.cpp @@ -26,6 +26,11 @@ KartUpdateProtocol::~KartUpdateProtocol() { } // ~KartUpdateProtocol +// ---------------------------------------------------------------------------- +void KartUpdateProtocol::setup() +{ +} // setup + // ---------------------------------------------------------------------------- bool KartUpdateProtocol::notifyEventAsynchronous(Event* event) { @@ -55,11 +60,6 @@ bool KartUpdateProtocol::notifyEventAsynchronous(Event* event) return true; } // notifyEventAsynchronous -// ---------------------------------------------------------------------------- -void KartUpdateProtocol::setup() -{ -} // setup - // ---------------------------------------------------------------------------- void KartUpdateProtocol::update() { diff --git a/src/network/protocols/synchronization_protocol.cpp b/src/network/protocols/synchronization_protocol.cpp index 3db83cbf0..edd3da6b5 100644 --- a/src/network/protocols/synchronization_protocol.cpp +++ b/src/network/protocols/synchronization_protocol.cpp @@ -30,6 +30,13 @@ SynchronizationProtocol::~SynchronizationProtocol() } // ~SynchronizationProtocol //----------------------------------------------------------------------------- +void SynchronizationProtocol::setup() +{ + Log::info("SynchronizationProtocol", "Ready !"); + m_countdown = 5.0; // init the countdown to 5s + m_has_quit = false; +} // setup + //----------------------------------------------------------------------------- bool SynchronizationProtocol::notifyEventAsynchronous(Event* event) { @@ -121,15 +128,6 @@ bool SynchronizationProtocol::notifyEventAsynchronous(Event* event) //----------------------------------------------------------------------------- -void SynchronizationProtocol::setup() -{ - Log::info("SynchronizationProtocol", "Ready !"); - m_countdown = 5.0; // init the countdown to 5s - m_has_quit = false; -} // setup - -//----------------------------------------------------------------------------- - void SynchronizationProtocol::asynchronousUpdate() { double current_time = StkTime::getRealTime();