From d2c9734e9ca24782a12e7fb0c31330cdc498f365 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Thu, 4 Jul 2019 23:43:39 +0900 Subject: [PATCH] Hope this fixes mp lags --- source/rr/src/game.cpp | 2 +- source/rr/src/global.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/rr/src/game.cpp b/source/rr/src/game.cpp index 787b758c8..dfb06ce42 100644 --- a/source/rr/src/game.cpp +++ b/source/rr/src/game.cpp @@ -8339,7 +8339,6 @@ MAIN_LOOP_RESTART: double const gameUpdateStartTime = timerGetHiTicks(); if (((g_netClient || g_netServer) || !(g_player[myconnectindex].ps->gm & (MODE_MENU|MODE_DEMO))) && totalclock >= ototalclock+TICSPERFRAME) { - Net_GetInput(); //if (g_networkMode != NET_DEDICATED_SERVER) //{ // if (RRRA && g_player[myconnectindex].ps->on_motorcycle) @@ -8359,6 +8358,7 @@ MAIN_LOOP_RESTART: timerUpdate(); if (ready2send == 0) break; + Net_GetInput(); ototalclock += TICSPERFRAME; diff --git a/source/rr/src/global.h b/source/rr/src/global.h index 20faed521..b559d8a93 100644 --- a/source/rr/src/global.h +++ b/source/rr/src/global.h @@ -109,7 +109,7 @@ G_EXTERN fix16_t myhoriz, omyhoriz, myhorizoff, omyhorizoff, myang, omyang; G_EXTERN int16_t mycursectnum, myjumpingcounter; G_EXTERN uint8_t myjumpingtoggle, myonground, myhardlanding, myreturntocenter; G_EXTERN int16_t my_moto_speed; -G_EXTERN uint8_t my_moto_underwater, my_not_on_water, my_moto_on_ground; +G_EXTERN uint8_t my_not_on_water, my_moto_on_ground; G_EXTERN uint8_t my_moto_do_bump, my_moto_bump_fast, my_moto_on_oil, my_moto_on_mud; G_EXTERN int16_t my_moto_bump, my_moto_bump_target, my_moto_turb; G_EXTERN int32_t my_stairs;