Esempio n. 1
0
//
// Ensure other player stays in the near list
//
void CPlayer::RefreshNearPlayer ( CPlayer* pOther )
{
    SViewerInfo* pInfo = MapFind ( m_NearPlayerList, pOther );
    if ( !pInfo )
    {
        // Move from far list
        MovePlayerToNearList ( pOther );
        pInfo = MapFind ( m_NearPlayerList, pOther );
    }
    pInfo->iMoveToFarCountDown = 5;
}
Esempio n. 2
0
//
// Ensure other player stays in the near list
//
void CPlayer::RefreshNearPlayer ( CPlayer* pOther )
{
    SNearInfo* pInfo = MapFind ( m_NearPlayerList, pOther );
    if ( !pInfo )
    {
        // Move from far list
        MovePlayerToNearList ( pOther );
        pInfo = MapFind ( m_NearPlayerList, pOther );
    }
    pInfo->iCount = 5;
}