broadcast on changed course/trail

This commit is contained in:
Chris Danford
2005-05-18 07:14:19 +00:00
parent 0986e61f3d
commit e504fb4e98
12 changed files with 36 additions and 33 deletions
+5 -2
View File
@@ -709,7 +709,10 @@ void SongManager::Invalidate( Song *pStaleSong )
}
}
CONVERT_COURSE_POINTER( GAMESTATE->m_pCurCourse );
{
CourseID id = mapOldCourseToCourseID[GAMESTATE->m_pCurCourse]; /* this will always succeed */
GAMESTATE->m_pCurCourse.Set( id.ToCourse() );
}
CONVERT_COURSE_POINTER( GAMESTATE->m_pPreferredCourse );
#define CONVERT_TRAIL_POINTER( pTrail ) do { \
@@ -720,7 +723,7 @@ void SongManager::Invalidate( Song *pStaleSong )
const TrailIDAndCourse &tidc = it->second; \
const TrailID &id = tidc.first; \
const Course *pCourse = tidc.second; \
pTrail = id.ToTrail( pCourse, true ); \
pTrail.Set( id.ToTrail( pCourse, true ) ); \
} \
} while(false)