Fixed players chat not showing to others (it was only showing to themselves).

This commit is contained in:
hlstriker 2013-11-07 12:05:34 +00:00 committed by squeek
parent 8e52a86fd3
commit a629a38627

View file

@ -117,7 +117,7 @@ inline CBaseMultiplayerPlayer *ToBaseMultiplayerPlayer( CBaseEntity *pEntity )
if ( !pEntity || !pEntity->IsPlayer() )
return NULL;
#if _DEBUG
return dynamic_cast<CBaseMultiplayerPlayer *>( pEntity );
return static_cast<CBaseMultiplayerPlayer *>( pEntity ); // FF --> hlstriker: Changed to static_cast. Not sure why dynamic_cast wasn't working for this.
#else
return static_cast<CBaseMultiplayerPlayer *>( pEntity );
#endif