Fix MSVC build

git-svn-id: https://svn.eduke32.com/eduke32@8053 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-08-29 01:21:02 +00:00 committed by Christoph Oelckers
parent f01d7d67e3
commit d27c705b15
1 changed files with 1 additions and 1 deletions

View File

@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "fix16.h" #include "fix16.h"
#include "gamedefs.h" #include "gamedefs.h"
#include "gamevars.h" #include "gamevars.h"
#include "mmulti.h"
#include "network.h" #include "network.h"
#ifdef __cplusplus #ifdef __cplusplus
@ -459,7 +460,6 @@ static inline int32_t calc_smoothratio_demo(ClockTicks totalclk, ClockTicks otot
return clamp(tabledivide64(65536*elapsedFrames*REALGAMETICSPERSEC, rfreq), 0, 65536); return clamp(tabledivide64(65536*elapsedFrames*REALGAMETICSPERSEC, rfreq), 0, 65536);
} }
extern int myconnectindex;
static inline int32_t calc_smoothratio(ClockTicks totalclk, ClockTicks ototalclk) static inline int32_t calc_smoothratio(ClockTicks totalclk, ClockTicks ototalclk)
{ {
if (!((ud.show_help == 0 && (!g_netServer && ud.multimode < 2) && ((g_player[myconnectindex].ps->gm & MODE_MENU) == 0)) || if (!((ud.show_help == 0 && (!g_netServer && ud.multimode < 2) && ((g_player[myconnectindex].ps->gm & MODE_MENU) == 0)) ||