mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-21 19:51:33 +00:00
Fix crash with security camera on Artus Mine level
This commit is contained in:
parent
e500890d8c
commit
8a6e37b216
1 changed files with 1 additions and 1 deletions
|
@ -2036,7 +2036,7 @@ int NPC_ShotEntity( gentity_t *ent, vec3_t impactPos )
|
|||
|
||||
int location = Q_irand(0, 9);
|
||||
if (location <= 4 || cg.renderingThirdPerson ||
|
||||
ent->client->ps.clientNum != 0) { //50% chance (unless ent is not the player, then always go for chest, which is original behaviour)
|
||||
ent->client == NULL || ent->client->ps.clientNum != 0) { //50% chance (unless ent is not the player, then always go for chest, which is original behaviour)
|
||||
CalcEntitySpot(ent, SPOT_CHEST, targ);
|
||||
} else if (location <= 7) { //30% chance
|
||||
CalcEntitySpot(ent, SPOT_LEGS, targ);
|
||||
|
|
Loading…
Reference in a new issue