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;
for (clnum = 0; clnum < slots; clnum++) {
cl = &svs.clients[clnum];
/* ensure angles are respected -eukara */
if (svprogfuncs) {
cl->edict->v->fixangle = 1;
}
//make sure userinfos match any renamed players.
for (clnum = 0; clnum < slots; clnum++)
if (svs.clients[clnum].state >= cs_connected)
SV_ExtractFromUserinfo (&svs.clients[clnum], true);
if (cl->state >= cs_connected) {
SV_ExtractFromUserinfo(&svs.clients[clnum], true);
}
}
}
#ifndef QUAKETC