Removed debug output.

This commit is contained in:
hiker 2018-01-10 18:37:56 +11:00
parent 4c6a226968
commit f6abdefe05

View File

@ -139,15 +139,9 @@ float History::updateReplayAndGetDT(float world_time, float dt)
// In non-networked history races, we need to do at least one timestep // In non-networked history races, we need to do at least one timestep
// to get the right DT. The while loop is exited at the bottom in this // to get the right DT. The while loop is exited at the bottom in this
// case/ // case/
Log::verbose("history", "Begin %f %f %f %f current %d event %d",
m_history_time, world_time, dt, world_time + dt,
m_current, m_event_index);
while (m_history_time < world_time + dt || while (m_history_time < world_time + dt ||
!NetworkConfig::get()->isNetworking() ) !NetworkConfig::get()->isNetworking() )
{ {
Log::verbose("history", "Inner %f %f %f %f current %d event %d",
m_history_time, world_time,dt, world_time + dt,
m_current, m_event_index);
m_current++; m_current++;
if (m_current >= (int)m_all_deltas.size()) if (m_current >= (int)m_all_deltas.size())
{ {
@ -184,8 +178,6 @@ float History::updateReplayAndGetDT(float world_time, float dt)
{ {
const InputEvent &ie = m_all_input_events[m_event_index]; const InputEvent &ie = m_all_input_events[m_event_index];
AbstractKart *kart = world->getKart(ie.m_kart_index); AbstractKart *kart = world->getKart(ie.m_kart_index);
Log::verbose("history", "time %f action %d %d",
world->getTime(), ie.m_action, ie.m_value);
kart->getController()->action(ie.m_action, ie.m_value); kart->getController()->action(ie.m_action, ie.m_value);
m_event_index++; m_event_index++;
} }