summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 2be2bf45..4e2610db 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -4273,7 +4273,7 @@ void G_BuildLogRevertThink( gentity_t *ent )
int victims = 0;
int i;
- if( ent->suicideTime > level.time )
+ if( ent->suicideTime > 0 )
{
BG_BuildableBoundingBox( ent->s.modelindex, mins, maxs );
VectorAdd( ent->s.pos.trBase, mins, mins );
@@ -4295,6 +4295,8 @@ void G_BuildLogRevertThink( gentity_t *ent )
}
}
+ ent->suicideTime--;
+
if( victims )
{
// still a blocker
@@ -4366,7 +4368,9 @@ void G_BuildLogRevert( int id )
builder->think = G_BuildLogRevertThink;
builder->nextthink = level.time + FRAMETIME;
- builder->suicideTime = level.time + 3000;
+
+ // Number of thinks before giving up and killing players in the way
+ builder->suicideTime = 30;
if( log->fate == BF_DESTROY || log->fate == BF_TEAMKILL )
{