summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:54:56 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:19 +0000
commit292b4da1fef014a7b3d1f7eb22710fb5aa27e11b (patch)
treef6a9963b18b5ca7c49d39c2f50cfda33dc8a9572 /src
parent0065af08e35d3d88182011a79d9ba6ce29165c09 (diff)
Display 0 BP during SD
Diffstat (limited to 'src')
-rw-r--r--src/game/g_buildable.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 648f7a1a..704a8c7c 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -400,7 +400,11 @@ Get the number of build points from a position
*/
int G_GetBuildPoints( const vec3_t pos, team_t team, int extraDistance )
{
- if( team == TEAM_ALIENS )
+ if( level.suddenDeath )
+ {
+ return 0;
+ }
+ else if( team == TEAM_ALIENS )
{
return level.alienBuildPoints;
}
@@ -429,7 +433,11 @@ int G_GetBuildPoints( const vec3_t pos, team_t team, int extraDistance )
vec3_t temp_v;
int buildPoints = 0;
- if( team == TEAM_HUMANS )
+ if( level.suddenDeath )
+ {
+ buildPoints = 0;
+ }
+ else if( team == TEAM_HUMANS )
{
// Iterate through entities
for( i = MAX_CLIENTS, ent = g_entities + i; i < level.num_entities; i++, ent++ )