Cast to extra_player_info_dod_t depending on game

This commit is contained in:
8dcc 2023-07-28 17:42:54 +02:00
parent 2c41a2b06b
commit 8cfead04f9
1 changed files with 7 additions and 1 deletions

View File

@ -50,8 +50,14 @@ bool is_friend(cl_entity_t* ent) {
return info[ent->index].teamnumber ==
info[localplayer->index].teamnumber;
}
case DOD: {
extra_player_info_dod_t* info =
(extra_player_info_dod_t*)player_extra_info;
return info[ent->index].teamnumber ==
info[localplayer->index].teamnumber;
}
case HL:
case DOD:
default:
return false;
}