mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
- Fix spectator client being switched from follow to free after map_restart if following a client with a higher client number.
- Fix client unlinking issue caused by ent->s.number being set to followed client's ps->clientNum after map_restart. Reported by Ensiform.
This commit is contained in:
parent
1c8fa31c0d
commit
b791040f42
1 changed files with 5 additions and 2 deletions
|
@ -1248,8 +1248,11 @@ void ClientSpawn(gentity_t *ent) {
|
|||
client->ps.commandTime = level.time - 100;
|
||||
ent->client->pers.cmd.serverTime = level.time;
|
||||
ClientThink( ent-g_entities );
|
||||
// run the presend to set anything else
|
||||
ClientEndFrame( ent );
|
||||
// run the presend to set anything else, follow spectators wait
|
||||
// until all clients have been reconnected after map_restart
|
||||
if ( ent->client->sess.spectatorState != SPECTATOR_FOLLOW ) {
|
||||
ClientEndFrame( ent );
|
||||
}
|
||||
|
||||
// clear entity state values
|
||||
BG_PlayerStateToEntityState( &client->ps, &ent->s, qtrue );
|
||||
|
|
Loading…
Reference in a new issue