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,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
|
||||||
|
|
Loading…
Reference in a new issue