From c90c76a68d8b9af8951b5f2110e1eac6fbec3702 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 24 Jun 2002 16:45:12 +0000 Subject: Bugfix to body sinking --- src/game/g_client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/g_client.c b/src/game/g_client.c index 4bb75029..46850044 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -570,9 +570,11 @@ After sitting around for five seconds, fall into the ground and dissapear */ void BodySink( gentity_t *ent ) { - //arbituary number > 100 and < time since nextthink was set - if( level.time - ent->nextthink > 1000 ) + //run on first BodySink call + if( !ent->active ) { + ent->active = qtrue; + //sinking bodies can't be infested ent->killedBy = ent->s.powerups = MAX_CLIENTS; ent->timestamp = level.time; -- cgit