mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-11 07:42:15 +00:00
Fixed a crash bug
This commit is contained in:
parent
76494547d1
commit
602c384fda
1 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.73 2002/07/01 19:48:56 makro
|
||||||
|
// Fixed a crash bug
|
||||||
|
//
|
||||||
// Revision 1.72 2002/06/29 20:58:10 niceass
|
// Revision 1.72 2002/06/29 20:58:10 niceass
|
||||||
// shoot through teammates
|
// shoot through teammates
|
||||||
//
|
//
|
||||||
|
@ -641,7 +644,8 @@ void Bullet_Fire(gentity_t * ent, float spread, int damage, int MOD)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// NiceAss: Added so the M4 will shoot through bodies
|
// NiceAss: Added so the M4 will shoot through bodies
|
||||||
if ( traceEnt->client || ent->client) {
|
// Makro - changed from || to &&. Q3 crashed before
|
||||||
|
if ( traceEnt->client && ent->client) {
|
||||||
if ( (MOD == MOD_M4 && traceEnt->client->kevlarHit == qfalse) ||
|
if ( (MOD == MOD_M4 && traceEnt->client->kevlarHit == qfalse) ||
|
||||||
// NiceAss: And you can shoot through teammates
|
// NiceAss: And you can shoot through teammates
|
||||||
OnSameTeam(traceEnt, ent) ) {
|
OnSameTeam(traceEnt, ent) ) {
|
||||||
|
|
Loading…
Reference in a new issue