Skip to content

Commit

Permalink
Avoid direct use of entity_state_t in MVD code.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet authored and res2k committed Jan 25, 2024
1 parent e53f29b commit b16aaab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/mvd/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ static void MVD_UpdateTarget(mvd_client_t *client)
{
mvd_t *mvd = client->mvd;
mvd_player_t *target;
entity_state_t *ent;
edict_t *ent;
int i;

// find new target for effects auto chasecam
Expand All @@ -609,8 +609,8 @@ static void MVD_UpdateTarget(mvd_client_t *client)
if (!target->inuse || target == mvd->dummy) {
continue;
}
ent = &mvd->edicts[i + 1].s;
if (ent->effects & client->chase_mask) {
ent = &mvd->edicts[i + 1];
if (ent->s.effects & client->chase_mask) {
MVD_FollowStart(client, target);
return;
}
Expand Down

0 comments on commit b16aaab

Please sign in to comment.