Skip to content

Commit

Permalink
Don't award assist bonuses to flag capturing player, https://bugzilla…
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo Schulz committed Oct 6, 2009
1 parent 5c62c95 commit de9cf46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/g_team.c
Expand Up @@ -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 !=
Expand Down

0 comments on commit de9cf46

Please sign in to comment.