Move call to S_Update() to after G_MoveLoop()

git-svn-id: https://svn.eduke32.com/eduke32@7672 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-05-19 03:56:02 +00:00 committed by Christoph Oelckers
parent 6678ce3fd1
commit 79752ee168

View file

@ -6735,11 +6735,10 @@ MAIN_LOOP_RESTART:
if (((g_netClient || g_netServer) || (myplayer.gm & (MODE_MENU|MODE_DEMO)) == 0) && totalclock >= ototalclock+TICSPERFRAME)
{
if (g_networkMode != NET_DEDICATED_SERVER)
{
P_GetInput(myconnectindex);
Bmemcpy(&inputfifo[0][myconnectindex], &localInput, sizeof(input_t));
S_Update();
inputfifo[0][myconnectindex] = localInput;
}
do
{
@ -6780,6 +6779,8 @@ MAIN_LOOP_RESTART:
if (g_gameUpdateAvgTime < 0.f)
g_gameUpdateAvgTime = g_gameUpdateTime;
g_gameUpdateAvgTime = ((GAMEUPDATEAVGTIMENUMSAMPLES-1.f)*g_gameUpdateAvgTime+g_gameUpdateTime)/((float) GAMEUPDATEAVGTIMENUMSAMPLES);
S_Update();
}
G_DoCheats();