mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
6678ce3fd1
commit
79752ee168
1 changed files with 5 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue