mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
Don't award assist bonuses to flag capturing player, https://bugzilla.icculus.org/show_bug.cgi?id=3260
This commit is contained in:
parent
5c62c95c64
commit
de9cf465cc
1 changed files with 3 additions and 1 deletions
|
@ -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 !=
|
||||
|
|
Loading…
Reference in a new issue