Don't award assist bonuses to flag capturing player, https://bugzilla.icculus.org/show_bug.cgi?id=3260

This commit is contained in:
Thilo Schulz 2009-10-06 14:10:45 +00:00
parent 5c62c95c64
commit de9cf465cc

View file

@ -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 // Ok, let's do the player loop, hand out the bonuses
for (i = 0; i < g_maxclients.integer; i++) { for (i = 0; i < g_maxclients.integer; i++) {
player = &g_entities[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; continue;
if (player->client->sess.sessionTeam != if (player->client->sess.sessionTeam !=