From aa2d94481322847ba62b6b77b8bb463bd303d86c Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 21 Sep 2018 16:13:19 +0800 Subject: [PATCH] Use setTicksForRewind for count down game timer --- src/items/network_item_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/items/network_item_manager.cpp b/src/items/network_item_manager.cpp index a6ed824e3..76eb030ba 100644 --- a/src/items/network_item_manager.cpp +++ b/src/items/network_item_manager.cpp @@ -317,9 +317,9 @@ void NetworkItemManager::restoreState(BareNetworkString *buffer, int count) // example, bubble gum torque depends on time, and would be wrong // otherwise resulting in stuttering). int old_time = world->getTicksSinceStart(); // Save time we rewind to - world->setTicks(iei.getTicks()); // Set time of event + world->setTicksForRewind(iei.getTicks()); // Set time of event collectedItem(m_confirmed_state[index], kart);// Collect item - world->setTicks(old_time); // Set time to rewind-to + world->setTicksForRewind(old_time); // Set time to rewind-to if (m_confirmed_state[index]->isUsedUp()) {