rsked/playermgr.cc
/// This is called in the unlikely event that more than one player
/// thinks it should be playing at the current time(!).
///
This is called in the unlikely event that more than one player
thinks it should be playing at the current time(!).
This is called in the unlikely event that more than one player thinks it should be playing at the current time ( ! ) .
bool Player_manager::fix_contention( unsigned np )
{
    LOG_WARNING(Lgr) << np << " players are nominally playing";
    for ( auto pair : m_players ) {
        spPlayer sp = pair.second;
        if (sp) {
            if (sp->state() ==  PlayerState::Playing) {
                LOG_WARNING(Lgr) << " - " << sp->name()
                               << " thinks it is playing";
            }
        }
    }
    return false;
}
bool Player_manager :: fix_contention ( unsigned np ) { LOG_WARNING ( Lgr ) << np << " " ; for ( auto pair : m_players ) { spPlayer sp = pair . second ; if ( sp ) { if ( sp -> state ( ) == PlayerState :: Playing ) { LOG_WARNING ( Lgr ) << " " << sp -> name ( ) << " " ; } } } return false ; }
This is called in the unlikely event that more than one player
thinks it should be playing at the current time(!
This is called in the unlikely event that more than one player thinks it should be playing at the current time ( !