mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Oops, i've missed do while here
# Conflicts: # source/rr/src/game.cpp
This commit is contained in:
parent
d23b4a7e33
commit
1719b70559
1 changed files with 44 additions and 41 deletions
|
@ -7623,6 +7623,8 @@ MAIN_LOOP_RESTART:
|
|||
char gameUpdate = false;
|
||||
double const gameUpdateStartTime = timerGetHiTicks();
|
||||
if (((g_netClient || g_netServer) || !(g_player[myconnectindex].ps->gm & (MODE_MENU|MODE_DEMO))) && totalclock >= ototalclock+TICSPERFRAME)
|
||||
{
|
||||
do
|
||||
{
|
||||
//if (g_networkMode != NET_DEDICATED_SERVER)
|
||||
//{
|
||||
|
@ -7672,6 +7674,7 @@ MAIN_LOOP_RESTART:
|
|||
if (g_gameUpdateAvgTime < 0.f)
|
||||
g_gameUpdateAvgTime = g_gameUpdateTime;
|
||||
g_gameUpdateAvgTime = ((GAMEUPDATEAVGTIMENUMSAMPLES-1.f)*g_gameUpdateAvgTime+g_gameUpdateTime)/((float) GAMEUPDATEAVGTIMENUMSAMPLES);
|
||||
} while(0);
|
||||
}
|
||||
|
||||
G_DoCheats();
|
||||
|
|
Loading…
Reference in a new issue