Line 224:
if ( teamonly && g_pGameRules->PlayerCanHearChat( client,
pPlayer ) != GR_TEAMMATE )
continue;
PlayerCanHearChat returns a boolean (not a GR_ enumerated type). I believe
whoever implemented this confused PlayerCanHearChat and PlayerRelationship.
The only reason this works is because GR_TEAMMATE is defined as 1. I believe
the code should read:
// if this chat text is for the team only, but the two
players
// can't hear each other's team chat then ignore and move on
if ( teamonly && !g_pGameRules->PlayerCanHearChat( client,
pPlayer ) )
continue;
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders