Commit 44f11d86 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Duke3d: move P_SetupMiscInputSettings() from game.cpp into game.h and call after loading savegames

parent 147b25f4
......@@ -6139,15 +6139,6 @@ static void G_Startup(void)
Bfflush(NULL);
}
static void P_SetupMiscInputSettings(void)
{
auto ps = g_player[myconnectindex].ps;
ps->aim_mode = ud.mouseaiming;
ps->auto_aim = ud.config.AutoAim;
ps->weaponswitch = ud.weaponswitch;
}
void G_UpdatePlayerFromMenu(void)
{
if (ud.recstat != 0)
......
......@@ -585,6 +585,15 @@ EXTERN_INLINE void G_SetStatusBarScale(int32_t sc)
#endif
static FORCE_INLINE void P_SetupMiscInputSettings(void)
{
auto ps = g_player[myconnectindex].ps;
ps->aim_mode = ud.mouseaiming;
ps->auto_aim = ud.config.AutoAim;
ps->weaponswitch = ud.weaponswitch;
}
#endif
#endif
......@@ -2540,6 +2540,7 @@ static void postloadplayer(int32_t savegamep)
//8
// if (savegamep) ?
G_ResetTimers(0);
P_SetupMiscInputSettings();
#ifdef USE_STRUCT_TRACKERS
Bmemset(sectorchanged, 0, sizeof(sectorchanged));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment