Don't update surrender condition if killed by non-player side.

This commit is contained in:
Steve 2016-05-24 09:11:07 +01:00
parent b2e22b31b9
commit 300d4ab867
1 changed files with 2 additions and 1 deletions

View File

@ -346,7 +346,8 @@ void doFighter(void)
updateCondition(self->name, TT_DESTROY); updateCondition(self->name, TT_DESTROY);
updateCondition(self->groupName, TT_DESTROY); updateCondition(self->groupName, TT_DESTROY);
if (self->flags & EF_SURRENDERED) /* don't fire if the opposing side is responsible */
if (self->flags & EF_SURRENDERED && self->killedBy->side == player->side)
{ {
updateCondition("SURRENDERED", TT_DESTROY); updateCondition("SURRENDERED", TT_DESTROY);
} }