From 95b2814fcfb73daf221fe95e59787ba061b7f349 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 13:05:07 +0000 Subject: Fix the turret bug for teslas too --- src/game/g_buildable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game') diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 38cb5057..f72b9b07 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2444,7 +2444,7 @@ void HTeslaGen_Think( gentity_t *self ) return; } - if( self->spawned && self->count < level.time ) + if( self->spawned && self->timestamp < level.time ) { vec3_t range, mins, maxs; int entityList[ MAX_GENTITIES ], i, num; @@ -2476,7 +2476,7 @@ void HTeslaGen_Think( gentity_t *self ) //doesn't really need an anim //G_SetBuildableAnim( self, BANIM_ATTACK1, qfalse ); - self->count = level.time + TESLAGEN_REPEAT; + self->timestamp = level.time + TESLAGEN_REPEAT; } } } -- cgit