diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2011-02-21 08:37:02 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:18:01 +0000 |
commit | cf1f5dc37a767c2ebe3c88fc106a23e5cc13b15a (patch) | |
tree | 23ee24c2113cc32eadc648a77c8b766d141c95a7 /src/game/g_active.c | |
parent | 194bcc454fa4964185c721577d3605fe11a97660 (diff) |
* (bug 4908) Show BP from marked buildables on the HUD
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index 89882760..a7cd08c0 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1713,7 +1713,9 @@ 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 ); + client->ps.stats[ STAT_TEAM ] ); + client->ps.persistant[ PERS_MARKEDBP ] = G_GetMarkedBuildPoints( client->ps.origin, + client->ps.stats[ STAT_TEAM ] ); if( client->ps.persistant[ PERS_BP ] < 0 ) client->ps.persistant[ PERS_BP ] = 0; |