bug fix in countdown code

This commit is contained in:
Bryce Hutchings 2002-08-22 03:29:07 +00:00
parent f330eb00d2
commit f551f8b016

View file

@ -5,6 +5,9 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// $Log$ // $Log$
// Revision 1.130 2002/08/22 03:29:07 niceass
// bug fix in countdown code
//
// Revision 1.129 2002/08/21 07:00:07 jbravo // Revision 1.129 2002/08/21 07:00:07 jbravo
// Added CTB respawn queue and fixed game <-> cgame synch problem in CTB // Added CTB respawn queue and fixed game <-> cgame synch problem in CTB
// //
@ -1267,10 +1270,13 @@ void RQ3_StartTimer (int team, int delay)
ent = &g_entities[i]; ent = &g_entities[i];
if (!ent->inuse || !ent->client) if (!ent->inuse || !ent->client)
continue; continue;
if (!ent->client->pers.connected != CON_CONNECTED)
if (ent->client->pers.connected != CON_CONNECTED)
continue; continue;
if (ent->client->sess.savedTeam == team)
if (ent->client->sess.savedTeam == team) {
trap_SendServerCommand(ent - g_entities, va("rq3_cmd %i %i", CTBCOUNTDOWN, delay)); trap_SendServerCommand(ent - g_entities, va("rq3_cmd %i %i", CTBCOUNTDOWN, delay));
}
} }
} }