From b8a9608b10e05d163e4bc293ebfca51fe50b2eac Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 25 May 2016 09:43:15 +0100 Subject: [PATCH] When changing something's side, make it a mission target if no longer aligned with player. --- src/battle/entities.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/battle/entities.c b/src/battle/entities.c index 30431d7..2b3e1ab 100644 --- a/src/battle/entities.c +++ b/src/battle/entities.c @@ -677,6 +677,11 @@ void updateEntitySide(char *sideStr, char *name) if (strcmp(e->name, name) == 0) { e->side = side; + + if (e->side != player->side) + { + e->flags |= EF_MISSION_TARGET; + } } } }