From 17de128f09d37903d3cc3cc571dc3fd21985b142 Mon Sep 17 00:00:00 2001 From: hiker Date: Fri, 29 Jan 2016 08:18:34 +1100 Subject: [PATCH] Cosmetic changes only. --- src/network/protocols/kart_update_protocol.cpp | 10 +++++----- .../protocols/synchronization_protocol.cpp | 16 +++++++--------- 2 files changed, 12 insertions(+), 14 deletions(-) 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();