summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2019-08-07 04:24:38 +0100
committerIronClawTrem <louie.nutman@gmail.com>2019-08-07 04:24:38 +0100
commita0e07d6964f539fdc4aa9550dfbec7ea137b77d4 (patch)
tree479d0aa7bca84ecf1b72582c03785acec72c4539
parente5ff1d3d4bc01d98b12d05f9cb85457c7f15c424 (diff)
touching booster resets timer
-rw-r--r--src/game/g_buildable.c14
1 files 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;
}