Move S_Update() out of game loop and into Net_GetPackets()

This improves, but doesn't fix, the issue with sound popping when the player angle changes.

git-svn-id: https://svn.eduke32.com/eduke32@7676 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-05-19 03:56:29 +00:00 committed by Christoph Oelckers
parent 91b9a605fa
commit a4b30b5b90
2 changed files with 1 additions and 3 deletions

View File

@ -6779,8 +6779,6 @@ 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();

View File

@ -86,7 +86,7 @@ void Net_GetPackets(void)
{
timerUpdate();
MUSIC_Update();
S_Cleanup();
S_Update();
G_HandleSpecialKeys();