diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-06-26 03:19:59 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-06-26 03:23:19 +0200 |
commit | 1895729b01532be9589d3606c331cc8f9ca9a9e3 (patch) | |
tree | 243b3526ea535df824d38fd1a3a4b841e1f63c4a /src/game/g_active.c | |
parent | 7a9d256ea39e7ed8797801f8184e6ab7f27a21dc (diff) |
More bug fixes for Wraith.
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index cac7e7f..e23b0c5 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1471,6 +1471,7 @@ void ClientThink_real( gentity_t *ent ) int msec; usercmd_t *ucmd; int i; + float modifier = 1.0f; client = ent->client; @@ -1596,7 +1597,6 @@ void ClientThink_real( gentity_t *ent ) int i, num; int count, interval; vec3_t range, mins, maxs; - float modifier = 1.0f; VectorSet( range, REGEN_BOOST_RANGE, REGEN_BOOST_RANGE, REGEN_BOOST_RANGE ); @@ -1670,9 +1670,10 @@ void ClientThink_real( gentity_t *ent ) } if( client->ps.weapon == WP_ALEVEL1 && - client->lastWarpTime + LEVEL1_WARP_REGEN_DELAY <= level.time ) + client->lastWarpTime + LEVEL1_WARP_REGEN_DELAY <= level.time && + G_Overmind( ) ) { - client->ps.stats[ STAT_MISC ] += msec * LEVEL1_WARP_REGEN_RATE; + client->ps.stats[ STAT_MISC ] += msec * LEVEL1_WARP_REGEN_RATE * modifier; if( client->ps.stats[ STAT_MISC ] > LEVEL1_WARP_TIME ) { |