From f8bd44281b3369f667923305768ac7424a960eed Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sun, 7 Aug 2011 22:56:21 +0000 Subject: * (bug 5039) Fix buildables to initialize with the correct normal vector, which should improve falsely self-destructing eggs (/dev/humancontroller) --- src/game/g_active.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/g_active.c') diff --git a/src/game/g_active.c b/src/game/g_active.c index 58034a46..87cb7e94 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -634,10 +634,10 @@ void ClientTimerActions( gentity_t *ent, int msec ) if( ( client->ps.stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT ) > BA_NONE ) { int dist = BG_Class( ent->client->ps.stats[ STAT_CLASS ] )->buildDist; - vec3_t dummy; + vec3_t dummy, dummy2; if( G_CanBuild( ent, client->ps.stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT, - dist, dummy ) == IBE_NONE ) + dist, dummy, dummy2 ) == IBE_NONE ) client->ps.stats[ STAT_BUILDABLE ] |= SB_VALID_TOGGLEBIT; else client->ps.stats[ STAT_BUILDABLE ] &= ~SB_VALID_TOGGLEBIT; -- cgit