Check is_friend with player_extra_info
This commit is contained in:
parent
fd0aea976f
commit
260d6647e6
|
@ -32,10 +32,8 @@ bool valid_player(cl_entity_t* ent) {
|
|||
}
|
||||
|
||||
bool is_friend(cl_entity_t* ent) {
|
||||
/* TODO */
|
||||
|
||||
(void)ent;
|
||||
return false;
|
||||
return !strcmp(player_extra_info[ent->index].teamname,
|
||||
player_extra_info[localplayer->index].teamname);
|
||||
}
|
||||
|
||||
char* get_name(int ent_idx) {
|
||||
|
|
Loading…
Reference in New Issue