diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-04-09 17:09:42 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-04-09 17:09:42 +0200 |
commit | 633697f8fb26930f4f3dc089726d76fed99595a3 (patch) | |
tree | c65b91ff338af0337bd748f570f1eae6087565ac /src/game/g_main.c | |
parent | cd2327517e9d1a7b906dbe6e3fa261bac63aa6fa (diff) | |
parent | eb2a53e0296771246e953cc6e0ac940cb846e438 (diff) |
Merge branch 'finite-bp'
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r-- | src/game/g_main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index 4a966b3..18f4f50 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -209,6 +209,8 @@ vmCvar_t g_MinHumanExtraBuildPoints; vmCvar_t g_MaxHumanExtraBuildPoints; vmCvar_t g_BuildingCreditsFactor; +vmCvar_t g_buildPointDeletion; + // copy cvars that can be set in worldspawn so they can be restored later static char cv_gravity[ MAX_CVAR_VALUE_STRING ]; static char cv_humanMaxStage[ MAX_CVAR_VALUE_STRING ]; @@ -385,7 +387,9 @@ static cvarTable_t gameCvarTable[ ] = { &g_MaxAlienExtraBuildPoints, "g_MaxAlienExtraBuildPoints", "800", CVAR_ARCHIVE, 0, qfalse }, { &g_MinHumanExtraBuildPoints, "g_MinHumanExtraBuildPoints", "-800", CVAR_ARCHIVE, 0, qfalse }, { &g_MaxHumanExtraBuildPoints, "g_MaxHumanExtraBuildPoints", "800", CVAR_ARCHIVE, 0, qfalse }, - { &g_BuildingCreditsFactor, "g_BuildingCreditsFactor", "0.25", CVAR_ARCHIVE, 0, qfalse } + { &g_BuildingCreditsFactor, "g_BuildingCreditsFactor", "0.25", CVAR_ARCHIVE, 0, qfalse }, + + { &g_buildPointDeletion, "g_buildPointDeletion", "1", CVAR_ARCHIVE, 0, qfalse } }; static int gameCvarTableSize = sizeof( gameCvarTable ) / sizeof( gameCvarTable[ 0 ] ); @@ -1440,10 +1444,10 @@ void G_CalculateBuildPoints( void ) } trap_SetConfigstring( CS_BUILD_POOLS, va( "%d %d %d %d %d %d", - g_alienBuildPoints.integer + level.alienExtraBuildPoints, + g_alienBuildPoints.integer + level.alienExtraBuildPoints - level.alienDeletedBuildPoints, g_alienBuildPoints.integer, level.alienNoBPFlashTime, - g_humanBuildPoints.integer + level.humanExtraBuildPoints, + g_humanBuildPoints.integer + level.humanExtraBuildPoints - level.humanDeletedBuildPoints, g_humanBuildPoints.integer, level.humanNoBPFlashTime ) ); |