From 2381b3f5e9b429ebc9c9d15acef4c76da3dc1076 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 17 Jan 2006 06:50:34 +0000 Subject: [PATCH] Cleanup. While I'm at it, might as well skip the "src/" too. --- stepmania/src/RageThreads.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageThreads.cpp b/stepmania/src/RageThreads.cpp index db912aca0c..6834f05dce 100644 --- a/stepmania/src/RageThreads.cpp +++ b/stepmania/src/RageThreads.cpp @@ -375,11 +375,10 @@ void Checkpoints::SetCheckpoint( const char *file, int line, const char *message if( slot == NULL ) sm_crash( "GetUnknownThreadSlot() returned NULL" ); - /* Ignore everything before the first "src/". */ - //file = strstr( file, "src/" ) ? strstr( file, "src/" ) : file; + /* Ignore everything up to and including the first "src/". */ const char *temp = strstr( file, "src/" ); - if (temp) - file = temp; + if( temp ) + file = temp + 4; slot->Checkpoints[slot->CurCheckpoint].Set( file, line, message ); if( g_LogCheckpoints )