diff options
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 |