fix cold-loading saved games issue

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4549 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-11-29 20:35:29 +00:00
parent f14682bee4
commit 32ba2e16e8

View file

@ -1074,7 +1074,7 @@ void SV_Savegame_f (void)
{
SV_Savegame(Cmd_Argv(1));
}
void SV_UpdateMaxPlayers(int newmax);
void SV_Loadgame_f (void)
{
levelcache_t *cache;
@ -1138,6 +1138,8 @@ void SV_Loadgame_f (void)
VFS_GETS(f, str, sizeof(str)-1);
slots = atoi(str);
if (slots > svs.allocated_client_slots)
SV_UpdateMaxPlayers(slots);
for (cl = svs.clients, clnum=0; clnum < slots; cl++,clnum++)
{
if (cl->state > cs_zombie)