Yet another crashbug fixed.

This commit is contained in:
Richard Allen 2002-04-07 19:23:41 +00:00
parent 23f02bf740
commit c93a3fcc1f

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.44 2002/04/07 19:23:41 jbravo
// Yet another crashbug fixed.
//
// Revision 1.43 2002/04/06 21:42:20 makro
// Changes to bot code. New surfaceparm system.
//
@ -135,6 +138,10 @@ qboolean JumpKick( gentity_t *ent )
return qfalse;
}
// JBravo: some sanity checks on the traceEnt
if (traceEnt == NULL || traceEnt->client == NULL)
return qfalse;
// JBravo: no kicking teammates while rounds are going
if (g_gametype.integer == GT_TEAMPLAY) {
if (ent->client->sess.sessionTeam == traceEnt->client->sess.sessionTeam &&