src/XPMPMultiplayer.cpp
void XPMPGetPlaneICAOAndLivery(XPMPPlaneID inPlane,
                               char *      outICAOCode,    // Can be NULL
                               char *      outLivery)      // Can be NULL
{
    Aircraft* pAc = AcFindByID(inPlane);
    if (pAc) {
        // this is not a safe operation...but the way the legay interface was defined:
        if (outICAOCode) strcpy (outICAOCode, pAc->acIcaoType.c_str());
        if (outLivery)   strcpy (outLivery,   pAc->acLivery.c_str());
    }
}
// return plane's ICAO / livery
return plane's ICAO / livery
return plane ' s ICAO / livery
void XPMPGetPlaneICAOAndLivery(XPMPPlaneID inPlane,
                               char *      outICAOCode,    
                               char *      outLivery)      
{
    Aircraft* pAc = AcFindByID(inPlane);
    if (pAc) {
        if (outICAOCode) strcpy (outICAOCode, pAc->acIcaoType.c_str());
        if (outLivery)   strcpy (outLivery,   pAc->acLivery.c_str());
    }
}
void XPMPGetPlaneICAOAndLivery ( XPMPPlaneID inPlane , char * outICAOCode , char * outLivery ) { Aircraft * pAc = AcFindByID ( inPlane ) ; if ( pAc ) { if ( outICAOCode ) strcpy ( outICAOCode , pAc -> acIcaoType . c_str ( ) ) ; if ( outLivery ) strcpy ( outLivery , pAc -> acLivery . c_str ( ) ) ; } }
return plane's ICAO / livery
return plane ' s ICAO / livery
// Can be NULL // Can be NULL // this is not a safe operation...but the way the legay interface was defined: