From 86a7cd3dea25d13291f3340231f26e4d04c059fb Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Tue, 2 Aug 2011 20:04:18 +0000 Subject: [PATCH] Fix crash bug introduced in r2116. traceEnt does not always have to be a client, so gauntlet attacking something that is not a client will crash the game. Thanks to Ensiform for reporting --- code/game/g_weapon.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/code/game/g_weapon.c b/code/game/g_weapon.c index 458a9697..24fd2919 100644 --- a/code/game/g_weapon.c +++ b/code/game/g_weapon.c @@ -91,9 +91,6 @@ qboolean CheckGauntletAttack( gentity_t *ent ) { traceEnt = &g_entities[ tr.entityNum ]; - if ( traceEnt->client->noclip ) { - return qfalse; - } // send blood impact if ( traceEnt->takedamage && traceEnt->client ) { tent = G_TempEntity( tr.endpos, EV_MISSILE_HIT );