summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-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++ )