- Remove inputScale global and make static in mainloop.cpp.

This commit is contained in:
Mitchell Richters 2023-02-05 08:37:37 +11:00
parent 1938efabe6
commit 9961a66a1f
3 changed files with 1 additions and 2 deletions

View file

@ -50,7 +50,6 @@ ESyncBits ActionsToSend = 0;
static int dpad_lock = 0; static int dpad_lock = 0;
bool sendPause; bool sendPause;
bool crouch_toggle; bool crouch_toggle;
double inputScale;
// Mouse speeds // Mouse speeds
CVAR(Float, m_pitch, 1.f, CVAR_GLOBALCONFIG | CVAR_ARCHIVE) CVAR(Float, m_pitch, 1.f, CVAR_GLOBALCONFIG | CVAR_ARCHIVE)

View file

@ -105,7 +105,6 @@ void SetupGameButtons();
void ApplyGlobalInput(InputPacket& input, ControlInfo* const hidInput, bool const crouchable = true, bool const disableToggle = false); void ApplyGlobalInput(InputPacket& input, ControlInfo* const hidInput, bool const crouchable = true, bool const disableToggle = false);
extern ESyncBits ActionsToSend; extern ESyncBits ActionsToSend;
extern bool gamesetinput; extern bool gamesetinput;
extern double inputScale;
inline bool SyncInput() inline bool SyncInput()
{ {

View file

@ -101,6 +101,7 @@ ticcmd_t playercmds[MAXPLAYERS];
static uint64_t stabilityticduration = 0; static uint64_t stabilityticduration = 0;
static uint64_t stabilitystarttime = 0; static uint64_t stabilitystarttime = 0;
static double inputScale;
bool r_NoInterpolate; bool r_NoInterpolate;
int entertic; int entertic;