When changing something's side, make it a mission target if no longer aligned with player.

This commit is contained in:
Steve 2016-05-25 09:43:15 +01:00
parent b36b35834d
commit b8a9608b10
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}
} }
} }
} }