Fix #154 by calling fixangles after loading a save
This commit is contained in:
parent
7a37e761df
commit
a05c722cbd
1 changed files with 14 additions and 4 deletions
|
@ -1794,11 +1794,21 @@ static void SV_GameLoaded(loadplayer_t *lp, size_t slots, const char *savename)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
host_client = NULL;
|
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.
|
//make sure userinfos match any renamed players.
|
||||||
for (clnum = 0; clnum < slots; clnum++)
|
if (cl->state >= cs_connected) {
|
||||||
if (svs.clients[clnum].state >= cs_connected)
|
|
||||||
SV_ExtractFromUserinfo(&svs.clients[clnum], true);
|
SV_ExtractFromUserinfo(&svs.clients[clnum], true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef QUAKETC
|
#ifndef QUAKETC
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue