for now don't allow bots to survive map changes

This commit is contained in:
Bill Currie 2003-03-04 17:38:42 +00:00
parent 3e05400175
commit d788d02716
1 changed files with 7 additions and 0 deletions

View File

@ -181,6 +181,13 @@ SV_SaveSpawnparms (void)
for (i = 0, host_client = svs.clients; i < MAX_CLIENTS; i++, host_client++)
{
if (host_client->state == cs_server) {
// drop server allocated clients (FIXME for now)
if (host_client->userinfo)
Info_Destroy (host_client->userinfo);
memset (host_client, 0, sizeof (*host_client));
continue;
}
if (host_client->state != cs_spawned)
continue;