mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-01-07 09:20:46 +00:00
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
This commit is contained in:
parent
020bd8772f
commit
86a7cd3dea
1 changed files with 0 additions and 3 deletions
|
@ -91,9 +91,6 @@ qboolean CheckGauntletAttack( gentity_t *ent ) {
|
||||||
|
|
||||||
traceEnt = &g_entities[ tr.entityNum ];
|
traceEnt = &g_entities[ tr.entityNum ];
|
||||||
|
|
||||||
if ( traceEnt->client->noclip ) {
|
|
||||||
return qfalse;
|
|
||||||
}
|
|
||||||
// send blood impact
|
// send blood impact
|
||||||
if ( traceEnt->takedamage && traceEnt->client ) {
|
if ( traceEnt->takedamage && traceEnt->client ) {
|
||||||
tent = G_TempEntity( tr.endpos, EV_MISSILE_HIT );
|
tent = G_TempEntity( tr.endpos, EV_MISSILE_HIT );
|
||||||
|
|
Loading…
Reference in a new issue