From dc215ae76045cc7ee80db427a1da1eede472d376 Mon Sep 17 00:00:00 2001 From: Petr Pudlak Date: Sat, 20 Sep 2014 19:45:18 +0200 Subject: 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. --- src/game/g_buildable.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/g_buildable.c') 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 ) -- cgit