mirror of
https://github.com/UberGames/ioef.git
synced 2024-12-01 00:21:19 +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
|
// 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 !=
|
||||||
|
|
Loading…
Reference in a new issue