// Move ALL clients back to where they were at the specified "time", except for "skip" void G_TimeShiftAllClients( int time, gentity_t *skip ) { int i; gentity_t *ent; if ( time > level.time ) time = level.time; // for every client for ( i=0, ent=g_entities; i<MAX_CLIENTS; i++, ent++ ) { if ( ent->client && ent->inuse && ent->client->sess.sessionTeam < TEAM_SPECTATOR && ent != skip ) G_TimeShiftClient( ent, time ); } }
/* ===================== G_TimeShiftAllClients Move ALL clients back to where they were at the specified "time", except for "skip" ===================== */ void G_TimeShiftAllClients( int time, gentity_t *skip ) { int i; gentity_t *ent; qboolean debug = ( skip != NULL && skip->client && skip->client->pers.debugDelag && skip->s.weapon == WP_RAILGUN ); // for every client ent = &g_entities[0]; for ( i = 0; i < MAX_CLIENTS; i++, ent++ ) { if ( ent->client && ent->inuse && ent->client->sess.sessionTeam < TEAM_SPECTATOR && ent != skip ) { G_TimeShiftClient( ent, time, debug, skip ); } } }
/* ===================== G_TimeShiftAllClients Move ALL clients back to where they were at the specified "time", except for "skip" ===================== */ void G_TimeShiftAllClients( int time, gentity_t *skip ) { int i=0; gentity_t *ent=NULL; if ( shifted ) { trap->Print( "WARNING: Tried to shift all clients when they were already shifted!\n" ); return; } if ( time > level.time ) time = level.time; for ( i=0, ent=g_entities; i<MAX_CLIENTS; i++, ent++ ) { if ( ent->client && ent->inuse && ent->client->sess.sessionTeam != TEAM_SPECTATOR && ent->client->tempSpectate < level.time && ent != skip ) { G_TimeShiftClient( ent, time ); } } shifted = qtrue; }