|
|
@ -113,12 +113,12 @@ void CBasePlayer::Observer_SetMode( int iMode ) |
|
|
|
iMode = OBS_IN_EYE; // now it is
|
|
|
|
iMode = OBS_IN_EYE; // now it is
|
|
|
|
|
|
|
|
|
|
|
|
// if we are not roaming, we need a valid target to track
|
|
|
|
// if we are not roaming, we need a valid target to track
|
|
|
|
if ( (iMode != OBS_ROAMING) && (m_hObserverTarget == NULL) ) |
|
|
|
if ( (iMode != OBS_ROAMING) && (m_hObserverTarget == 0) ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Observer_FindNextPlayer(); |
|
|
|
Observer_FindNextPlayer(); |
|
|
|
|
|
|
|
|
|
|
|
// if we didn't find a valid target switch to roaming
|
|
|
|
// if we didn't find a valid target switch to roaming
|
|
|
|
if (m_hObserverTarget == NULL) |
|
|
|
if (m_hObserverTarget == 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ClientPrint( pev, HUD_PRINTCENTER, "#Spec_NoTarget" ); |
|
|
|
ClientPrint( pev, HUD_PRINTCENTER, "#Spec_NoTarget" ); |
|
|
|
iMode = OBS_ROAMING; |
|
|
|
iMode = OBS_ROAMING; |
|
|
@ -139,4 +139,4 @@ void CBasePlayer::Observer_SetMode( int iMode ) |
|
|
|
char modemsg[16]; |
|
|
|
char modemsg[16]; |
|
|
|
sprintf(modemsg,"#Spec_Mode%i", iMode); |
|
|
|
sprintf(modemsg,"#Spec_Mode%i", iMode); |
|
|
|
ClientPrint( pev, HUD_PRINTCENTER, modemsg ); |
|
|
|
ClientPrint( pev, HUD_PRINTCENTER, modemsg ); |
|
|
|
} |
|
|
|
} |
|
|
|