mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
for now don't allow bots to survive map changes
This commit is contained in:
parent
3e05400175
commit
d788d02716
1 changed files with 7 additions and 0 deletions
|
@ -181,6 +181,13 @@ SV_SaveSpawnparms (void)
|
||||||
|
|
||||||
for (i = 0, host_client = svs.clients; i < MAX_CLIENTS; i++, host_client++)
|
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)
|
if (host_client->state != cs_spawned)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue