diff options
author | Tim Angus <tim@ngus.net> | 2004-02-01 02:17:16 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2004-02-01 02:17:16 +0000 |
commit | b3b15cc492b10515706085ae5199713535c1624b (patch) | |
tree | 1cf75081c71aa833f5417b6c9d75f07b8c0fc9dc /src/game/g_combat.c | |
parent | 09a7f2f33840dca9cb7ce7cadec2dd96fad94fa9 (diff) |
* Added an extra sanity check to evolution tracing after a "void" report
* Commented out telefrag code.. hopefully won't lead to stuck clients
* Raised the human item price ramp whilst slackening the alien value ramp
* Aliens now have a hard limit of 9 frags and humans 2000 credits
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r-- | src/game/g_combat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 847d8988..d5e6f2f7 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -259,6 +259,9 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int //add credit player->client->ps.persistant[ PERS_CREDIT ] += (int)( (float)classValue * ( numerator / denominator ) ); + + if( player->client->ps.persistant[ PERS_CREDIT ] > HUMAN_MAX_CREDITS ) + player->client->ps.persistant[ PERS_CREDIT ] = HUMAN_MAX_CREDITS; } } } @@ -267,6 +270,9 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int self->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) { attacker->client->ps.persistant[ PERS_CREDIT ]++; + + if( attacker->client->ps.persistant[ PERS_CREDIT ] > HUMAN_MAX_CREDITS ) + attacker->client->ps.persistant[ PERS_CREDIT ] = HUMAN_MAX_CREDITS; } // Add team bonuses |