Cast to extra_player_info_dod_t depending on game
This commit is contained in:
parent
2c41a2b06b
commit
8cfead04f9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue