From a05c722cbd92aebab83998436481a949fded6dcc Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sat, 24 Jun 2023 16:14:29 -0700 Subject: [PATCH] Fix #154 by calling fixangles after loading a save --- engine/server/savegame.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/engine/server/savegame.c b/engine/server/savegame.c index 3a3ce39b0..2f3592469 100644 --- a/engine/server/savegame.c +++ b/engine/server/savegame.c @@ -1794,10 +1794,20 @@ static void SV_GameLoaded(loadplayer_t *lp, size_t slots, const char *savename) } } host_client = NULL; - //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); + + 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. + if (cl->state >= cs_connected) { + SV_ExtractFromUserinfo(&svs.clients[clnum], true); + } + } } #ifndef QUAKETC