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:
parent
f14682bee4
commit
32ba2e16e8
1 changed files with 3 additions and 1 deletions
|
@ -1074,7 +1074,7 @@ void SV_Savegame_f (void)
|
||||||
{
|
{
|
||||||
SV_Savegame(Cmd_Argv(1));
|
SV_Savegame(Cmd_Argv(1));
|
||||||
}
|
}
|
||||||
|
void SV_UpdateMaxPlayers(int newmax);
|
||||||
void SV_Loadgame_f (void)
|
void SV_Loadgame_f (void)
|
||||||
{
|
{
|
||||||
levelcache_t *cache;
|
levelcache_t *cache;
|
||||||
|
@ -1138,6 +1138,8 @@ void SV_Loadgame_f (void)
|
||||||
|
|
||||||
VFS_GETS(f, str, sizeof(str)-1);
|
VFS_GETS(f, str, sizeof(str)-1);
|
||||||
slots = atoi(str);
|
slots = atoi(str);
|
||||||
|
if (slots > svs.allocated_client_slots)
|
||||||
|
SV_UpdateMaxPlayers(slots);
|
||||||
for (cl = svs.clients, clnum=0; clnum < slots; cl++,clnum++)
|
for (cl = svs.clients, clnum=0; clnum < slots; cl++,clnum++)
|
||||||
{
|
{
|
||||||
if (cl->state > cs_zombie)
|
if (cl->state > cs_zombie)
|
||||||
|
|
Loading…
Reference in a new issue