mirror of
https://github.com/DrBeef/JKXR.git
synced 2025-04-24 18:50:42 +00:00
Fix crash in JKA
This commit is contained in:
parent
0698ac2d28
commit
bf3006da46
3 changed files with 3 additions and 3 deletions
|
@ -3488,7 +3488,7 @@ void CG_FireWeapon( centity_t *cent, qboolean alt_fire )
|
||||||
}
|
}
|
||||||
|
|
||||||
//Are we the player?
|
//Are we the player?
|
||||||
if (cent->gent->client->ps.clientNum == 0)
|
if (cent->gent->client && cent->gent->client->ps.clientNum == 0)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
These are specific to external haptics vest/arms/face combinations
|
These are specific to external haptics vest/arms/face combinations
|
||||||
|
|
|
@ -1452,7 +1452,7 @@ static inline qboolean G_RagWantsHumanoidsOnly( CGhoul2Info *ghlInfo )
|
||||||
{
|
{
|
||||||
char *GLAName;
|
char *GLAName;
|
||||||
GLAName = gi.G2API_GetGLAName( ghlInfo );
|
GLAName = gi.G2API_GetGLAName( ghlInfo );
|
||||||
assert(GLAName);
|
//assert(GLAName);
|
||||||
|
|
||||||
if ( !Q_stricmp( "models/players/_humanoid/_humanoid", GLAName ) )
|
if ( !Q_stricmp( "models/players/_humanoid/_humanoid", GLAName ) )
|
||||||
{//only _humanoid skeleton is expected to have these
|
{//only _humanoid skeleton is expected to have these
|
||||||
|
|
|
@ -3293,7 +3293,7 @@ void CG_FireWeapon( centity_t *cent, qboolean alt_fire )
|
||||||
}
|
}
|
||||||
|
|
||||||
//Are we the player?
|
//Are we the player?
|
||||||
if (cent->gent->client->ps.clientNum == 0)
|
if (cent->gent->client && cent->gent->client->ps.clientNum == 0)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
These are specific to external haptics vest/arms/face combinations
|
These are specific to external haptics vest/arms/face combinations
|
||||||
|
|
Loading…
Reference in a new issue