When changing something's side, make it a mission target if no longer aligned with player.
This commit is contained in:
parent
b36b35834d
commit
b8a9608b10
|
@ -677,6 +677,11 @@ void updateEntitySide(char *sideStr, char *name)
|
||||||
if (strcmp(e->name, name) == 0)
|
if (strcmp(e->name, name) == 0)
|
||||||
{
|
{
|
||||||
e->side = side;
|
e->side = side;
|
||||||
|
|
||||||
|
if (e->side != player->side)
|
||||||
|
{
|
||||||
|
e->flags |= EF_MISSION_TARGET;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue