Check is_friend with player_extra_info

This commit is contained in:
8dcc 2023-07-27 22:13:54 +02:00
parent fd0aea976f
commit 260d6647e6
1 changed files with 2 additions and 4 deletions

View File

@ -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) {