summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-06-24 16:45:12 +0000
committerTim Angus <tim@ngus.net>2002-06-24 16:45:12 +0000
commitc90c76a68d8b9af8951b5f2110e1eac6fbec3702 (patch)
treeea56660a56b4be44e39dbd6a47078fe8003c5f25 /src
parentb3975d50421dcfe1c56aae165d2ac3329c02fc06 (diff)
Bugfix to body sinking
Diffstat (limited to 'src')
-rw-r--r--src/game/g_client.c6
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;