Skip to content

Commit

Permalink
Turn off intrusive logging when using the grabber while debugging som…
Browse files Browse the repository at this point in the history
…ething else.

git-svn-id: https://svn.thedarkmod.com/svn/darkmod_src/trunk@5097 49c82d7f-2e2a-0410-a16f-ae8f201b507f
  • Loading branch information
grayman committed Dec 7, 2011
1 parent 6b959fb commit ee70586
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DarkMod/Grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,13 +980,13 @@ void CGrabber::Event_CheckClipList( void )
if( !ListEnt )
{
// not sure how this is happening, but fix it
DM_LOG(LC_AI,LT_DEBUG)LOGSTRING("GRABBER CLIPLIST: Removing NULL entity from cliplist\r" );
//DM_LOG(LC_AI,LT_DEBUG)LOGSTRING("GRABBER CLIPLIST: Removing NULL entity from cliplist\r" );
keep = false;
}
// We keep an entity if it is the one we're dragging
else if( GetSelected() == ListEnt || (ListEnt->GetBindMaster() && GetSelected() == ListEnt->GetBindMaster()) )
{
DM_LOG(LC_AI,LT_DEBUG)LOGSTRING("GRABBER CLIPLIST: Keeping entity %s in cliplist as it is currently selected\r", ListEnt->name.c_str() );
//DM_LOG(LC_AI,LT_DEBUG)LOGSTRING("GRABBER CLIPLIST: Keeping entity %s in cliplist as it is currently selected\r", ListEnt->name.c_str() );
keep = true;
}
else
Expand All @@ -997,7 +997,7 @@ void CGrabber::Event_CheckClipList( void )
if( m_player.GetEntity()
&& (EntClip = ListEnt->GetPhysics()->GetClipModel()) != NULL )
{
DM_LOG(LC_AI,LT_DEBUG)LOGSTRING("GRABBER CLIPLIST: Testing entity %s for player clipping\r", ListEnt->name.c_str() );
//DM_LOG(LC_AI,LT_DEBUG)LOGSTRING("GRABBER CLIPLIST: Testing entity %s for player clipping\r", ListEnt->name.c_str() );
PlayerClip = m_player.GetEntity()->GetPhysics()->GetClipModel();
idVec3 PlayerOrigin = PlayerClip->GetOrigin();

Expand All @@ -1013,11 +1013,11 @@ void CGrabber::Event_CheckClipList( void )
if( tr.fraction < 1.0 )
{
keep = true;
DM_LOG(LC_AI,LT_DEBUG)LOGSTRING("GRABBER CLIPLIST: Keeping entity %s in cliplist since it is still clipping player\r", ListEnt->name.c_str() );
//DM_LOG(LC_AI,LT_DEBUG)LOGSTRING("GRABBER CLIPLIST: Keeping entity %s in cliplist since it is still clipping player\r", ListEnt->name.c_str() );
}
else
{
DM_LOG(LC_AI,LT_DEBUG)LOGSTRING("GRABBER CLIPLIST: Entity %s removed from cliplist since it is not selected or clipping player\r", ListEnt->name.c_str() );
//DM_LOG(LC_AI,LT_DEBUG)LOGSTRING("GRABBER CLIPLIST: Entity %s removed from cliplist since it is not selected or clipping player\r", ListEnt->name.c_str() );
}

}
Expand Down

0 comments on commit ee70586

Please sign in to comment.