1
0
Fork 0
forked from fte/fteqw

Fix #154 by calling fixangles after loading a save

This commit is contained in:
Marco Cawthorne 2023-06-24 16:14:29 -07:00
parent 7a37e761df
commit a05c722cbd
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -1794,10 +1794,20 @@ static void SV_GameLoaded(loadplayer_t *lp, size_t slots, const char *savename)
} }
} }
host_client = NULL; host_client = NULL;
//make sure userinfos match any renamed players.
for (clnum = 0; clnum < slots; clnum++) for (clnum = 0; clnum < slots; clnum++) {
if (svs.clients[clnum].state >= cs_connected) cl = &svs.clients[clnum];
SV_ExtractFromUserinfo (&svs.clients[clnum], true);
/* ensure angles are respected -eukara */
if (svprogfuncs) {
cl->edict->v->fixangle = 1;
}
//make sure userinfos match any renamed players.
if (cl->state >= cs_connected) {
SV_ExtractFromUserinfo(&svs.clients[clnum], true);
}
}
} }
#ifndef QUAKETC #ifndef QUAKETC