summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:52:08 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:17 +0000
commiteb9f1d7a0e02993772facc4314a0ba9f62592879 (patch)
tree5ad820d9415d6b7181962453249044d3516f772d /src/game/g_active.c
parentfd69c6cdcccfee850fb769ce34883ee7813ab569 (diff)
Zone BP
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index e004346a..80c3df65 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -1742,6 +1742,12 @@ void ClientThink_real( gentity_t *ent )
}
}
+ client->ps.persistant[ PERS_BP ] = G_GetBuildPoints( client->ps.origin,
+ client->ps.stats[ STAT_TEAM ], BG_Class( client->ps.stats[ STAT_CLASS ] )->buildDist );
+
+ if( client->ps.persistant[ PERS_BP ] < 0 )
+ client->ps.persistant[ PERS_BP ] = 0;
+
// Give clients some credit periodically
if( ent->client->lastKillTime + FREEKILL_PERIOD < level.time )
{