diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/game/g_team.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/code/game/g_team.c b/code/game/g_team.c index ca5341d..4bcd5bd 100644 --- a/code/game/g_team.c +++ b/code/game/g_team.c @@ -770,7 +770,9 @@ int Team_TouchOurFlag( gentity_t *ent, gentity_t *other, int team ) { // Ok, let's do the player loop, hand out the bonuses for (i = 0; i < g_maxclients.integer; i++) { player = &g_entities[i]; - if (!player->inuse) + + // also make sure we don't award assist bonuses to the flag carrier himself. + if (!player->inuse || player == other) continue; if (player->client->sess.sessionTeam != |