diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 11:39:26 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:12 +0000 |
commit | 7148805cd7831e3c33dd0965d9034ed5844e6464 (patch) | |
tree | 43bfe518a4ebafca25bd590afe41b6be6754e0cc /src/game | |
parent | a13e8058f45894a05f3f9d086e42ed1b16b12694 (diff) |
* cg_printDuplicate changed to cg_noPrintDuplicate (i.e.now defaults to 1.1 behaviour)
* only award partial credits for incomplete buildables
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_combat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 74feaa2c..3e86661e 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -156,6 +156,14 @@ float G_RewardAttackers( gentity_t *self ) else if( self->s.eType == ET_BUILDABLE ) { value = BG_FindValueOfBuildable( self->s.modelindex ); + + // only give partial credits for a buildable not yet completed + if( !self->spawned ) + { + value *= (float)( level.time - self->buildTime ) / + BG_FindBuildTimeForBuildable( self->s.modelindex ); + } + team = self->biteam; } else |