From 7a9d283f4360b1ff0946c1c6546b66ad79bababa Mon Sep 17 00:00:00 2001 From: hiker Date: Tue, 12 Apr 2016 22:35:56 +1000 Subject: [PATCH] Fixed comments. --- src/karts/kart_rewinder.cpp | 2 +- src/network/rewind_manager.cpp | 4 ++-- src/network/rewind_manager.hpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/karts/kart_rewinder.cpp b/src/karts/kart_rewinder.cpp index c247676f9..48d78594d 100644 --- a/src/karts/kart_rewinder.cpp +++ b/src/karts/kart_rewinder.cpp @@ -62,7 +62,7 @@ int KartRewinder::getState(char **buffer) const } // getState // ---------------------------------------------------------------------------- -/** Actuall rewind to the specified state. */ +/** Actually rewind to the specified state. */ void KartRewinder::rewindToState(char *buffer) { btTransform t; diff --git a/src/network/rewind_manager.cpp b/src/network/rewind_manager.cpp index 5eb6e9460..6a1bc020c 100644 --- a/src/network/rewind_manager.cpp +++ b/src/network/rewind_manager.cpp @@ -54,7 +54,7 @@ RewindManager::RewindInfo::RewindInfo(Rewinder *rewinder, char *buffer, bool is_event, bool is_confirmed) { m_rewinder = rewinder; - m_time = RewindManager::get()->getCurrentTime();; + m_time = RewindManager::get()->getCurrentTime(); m_time_step = RewindManager::get()->getCurrentTimeStep(); m_local_physics_time = World::getWorld()->getPhysics()->getPhysicsWorld()->getLocalTime(); m_buffer = buffer; @@ -290,7 +290,7 @@ void RewindManager::rewindTo(float rewind_time) if(!m_rewind_info[state]->isState()) { - Log::error("RewindManager", "No state for rewind to %d, state %d.", + Log::error("RewindManager", "No state for rewind to %f, state %d.", rewind_time, state); return; } diff --git a/src/network/rewind_manager.hpp b/src/network/rewind_manager.hpp index 7847949e6..195ed0c84 100644 --- a/src/network/rewind_manager.hpp +++ b/src/network/rewind_manager.hpp @@ -34,9 +34,9 @@ * on this client, which can save time in rewinding later). * - events for each rewindable object (for example any change in the kart * controls, like steering, fire, ... are an event). While states can be - * discarded (especially unconfirmed ones), e.g. to save spave, events + * discarded (especially unconfirmed ones), e.g. to save space, events * will always be kept (in order to allow replaying). - * Each object that is to be rewinded an instance of Rewinder needs to be + * For each object that is to be rewinded an instance of Rewinder needs to be * declared (usually inside of the object it can rewind). This instance * is automatically registered with the RewindManager. * All states and events are stored in a RewindInfo object. All RewindInfo