summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
authorPetr Pudlak <petr.mvd@gmail.com>2014-09-20 19:45:18 +0200
committerPetr Pudlak <petr.mvd@gmail.com>2014-09-20 19:57:21 +0200
commitdc215ae76045cc7ee80db427a1da1eede472d376 (patch)
treedd55db4312509edf9c448fd7b180536f813a7937 /src/game/g_buildable.c
parent0238f457f4200a92e99e3be0a61a9870ea8ae560 (diff)
Scan if a team has a negative number of build points
The scan occurs periodically in the main loop. There is a given probability that a building dies within 1 minute if BP < 0.
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 72d4d3c..37e3e66 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -391,6 +391,8 @@ Get the number of build points from a position.
If sudden death has started, the returned value might be negative,
but is never positive.
+
+Note: 'pos' can be NULL, in this case return the overall BP of the team.
==================
*/
int G_GetBuildPoints( const vec3_t pos, team_t team )