Removed debug output.

This commit is contained in:
hiker 2017-08-11 17:10:59 +10:00
parent a7a3f2b137
commit 6edfc02ec5
6 changed files with 3 additions and 19 deletions

View File

@ -172,7 +172,6 @@ void LocalPlayerController::steer(float dt, int steer_val)
{
if(UserConfigParams::m_gamepad_debug)
{
Log::debug("LocalPlayerController", "steering: steer_val %d ", steer_val);
RaceGUIBase* gui_base = World::getWorld()->getRaceGUI();
gui_base->clearAllMessages();
gui_base->addMessage(StringUtils::insertValues(L"steer_val %i", steer_val),

View File

@ -103,9 +103,6 @@ void PlayerController::resetInputState()
*/
bool PlayerController::action(PlayerAction action, int value, bool dry_run)
{
Log::info("action", "t %f action %d value %d val_l %d val_r %d val %d dryrun %d",
World::getWorld()->getTime(), action, value,
m_steer_val_l, m_steer_val_r, m_steer_val, dry_run);
/** If dry_run (parameter) is true, this macro tests if this action would
* trigger a state change in the specified variable (without actually
@ -264,8 +261,6 @@ void PlayerController::steer(float dt, int steer_val)
steer = 0;
}
Log::info("steer", "t %f dt %f steer_val %d steer %f",
World::getWorld()->getTime(), dt, steer_val, steer);
// Amount the steering is changed for digital devices.
// If the steering is 'back to straight', a different steering
// change speed is used.
@ -302,9 +297,6 @@ void PlayerController::steer(float dt, int steer_val)
if(steer>0.0f) steer=0.0f;
} // if steer<=0.0f
} // no key is pressed
Log::info("steer", "Setting steer to %f at %f dt %f worldtime %f", steer,
World::getWorld()->getTime(),
dt, StkTime::getRealTime());
m_controls->setSteer(std::min(1.0f, std::max(-1.0f, steer)) );
} // steer

View File

@ -1409,6 +1409,7 @@ void Kart::update(float dt)
old_group = m_body->getBroadphaseHandle()->m_collisionFilterGroup;
m_body->getBroadphaseHandle()->m_collisionFilterGroup = 0;
}
#ifdef XX
Log::verbose("physicsafter", "%s t %f %f xyz(9-11) %f %f %f %f %f %f v(13-15) %f %f %f steerf(17) %f maxangle(19) %f speed(21) %f steering(23-24) %f %f clock %lf",
getIdent().c_str(),
World::getWorld()->getTime(), dt,
@ -1424,7 +1425,7 @@ void Kart::update(float dt)
m_vehicle->getWheelInfo(1).m_steering, //24
StkTime::getRealTime()
);
#endif
// After the physics step was done, the position of the wheels (as stored
// in wheelInfo) is actually outdated, since the chassis was moved
// according to the force acting from the wheels. So the center of the

View File

@ -182,10 +182,6 @@ void WorldStatus::update(float dt)
*/
void WorldStatus::updateTime(const float dt)
{
Log::info("worldstatus", "phase %d time %lf aux %f dt %f next time %f",
m_phase, m_time, m_auxiliary_timer, dt,
m_time + dt
);
switch (m_phase)
{
// Note: setup phase must be a separate phase, since the race_manager

View File

@ -133,7 +133,7 @@ public:
return m_rewind_manager;
} // get
// Non-static functtion declarations:
// Non-static function declarations:
void reset();
void update(float dt);

View File

@ -153,8 +153,6 @@ void RewindQueue::insertRewindInfo(RewindInfo *ri)
{
// FIXME: this should always be the last element in the list(??)
AllTimeStepInfo::iterator bucket = findPreviousTimeStepInfo(ri->getTime());
Log::verbose("RewindQueue", "Insert rewind from %f at %f",
ri->getTime(), (*bucket)->getTime());
(*bucket)->insert(ri);
} // insertRewindInfo
@ -246,8 +244,6 @@ void RewindQueue::mergeNetworkData(float world_time, float dt,
{
*needs_rewind = false;
m_network_events.lock();
Log::verbose("RewindQueue", "#events in queue at %f %f are %d",
world_time, dt, m_network_events.getData().size());
if(m_network_events.getData().empty())
{
m_network_events.unlock();