diff options
author | Tim Angus <tim@ngus.net> | 2002-06-24 16:45:12 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2002-06-24 16:45:12 +0000 |
commit | c90c76a68d8b9af8951b5f2110e1eac6fbec3702 (patch) | |
tree | ea56660a56b4be44e39dbd6a47078fe8003c5f25 /src/game | |
parent | b3975d50421dcfe1c56aae165d2ac3329c02fc06 (diff) |
Bugfix to body sinking
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_client.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |