Oops, i've missed do while here

# Conflicts:
#	source/rr/src/game.cpp
This commit is contained in:
nukeykt 2019-12-15 10:48:04 +09:00 committed by Christoph Oelckers
parent d23b4a7e33
commit 1719b70559

View file

@ -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();