From a0e07d6964f539fdc4aa9550dfbec7ea137b77d4 Mon Sep 17 00:00:00 2001 From: IronClawTrem Date: Wed, 7 Aug 2019 04:24:38 +0100 Subject: touching booster resets timer --- src/game/g_buildable.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index e1cdc32..4e07c64 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -1487,9 +1487,6 @@ void ABooster_Touch( gentity_t *self, gentity_t *other, trace_t *trace ) { gclient_t *client = other->client; - if( other->flags & FL_NOTARGET ) - return; // notarget cancels even beneficial effects? - if( !self->spawned || self->health <= 0 ) return; @@ -1502,15 +1499,8 @@ void ABooster_Touch( gentity_t *self, gentity_t *other, trace_t *trace ) if( client && client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) return; - //only allow boostage once every 30 seconds - if( client->lastBoostedTime + BOOSTER_INTERVAL > level.time ) - return; - - if( !( client->ps.stats[ STAT_STATE ] & SS_BOOSTED ) ) - { - client->ps.stats[ STAT_STATE ] |= SS_BOOSTED; - client->lastBoostedTime = level.time; - } + client->ps.stats[ STAT_STATE ] |= SS_BOOSTED; + client->lastBoostedTime = level.time; } -- cgit