diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-07-04 03:07:03 +0300 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-07-04 03:07:03 +0300 |
commit | 592e6fe7e6d03cb1aca0da7e0c9627972362ed50 (patch) | |
tree | f5abb123a165ca9f590b6a642ffcc46c8234daa1 /src/game/g_buildable.c | |
parent | 9636124acf9af15c776d6f1df320790d14551bc6 (diff) |
Smoke grenade is now disabled.
Medikit is no longer purchasable from armoury (uses gpp behaviour).
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index bcd5eb1..7fb6fba 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2846,7 +2846,8 @@ void HMedistat_Think( gentity_t *self ) //if they're completely healed, give them a medkit if( self->enemy->health >= self->enemy->client->ps.stats[ STAT_MAX_HEALTH ] ) { - self->enemy->health = self->enemy->client->ps.stats[ STAT_MAX_HEALTH ]; + self->enemy->health = self->enemy->client->ps.stats[ STAT_MAX_HEALTH ]; + if (SPAWN_WITH_MEDKIT) BG_AddUpgradeToInventory( UP_MEDKIT, self->enemy->client->ps.stats ); } } } |