mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-12 13:31:33 +00:00
Fix compilation.
This commit is contained in:
parent
15eefa5f6c
commit
e6b4edf758
@ -29,7 +29,9 @@ int grgLogoFrame[MAX_LOGO_FRAMES] =
|
||||
29, 29, 29, 29, 29, 28, 27, 26, 25, 24, 30, 31
|
||||
};
|
||||
|
||||
extern int g_iVisibleMouse;
|
||||
#if defined(SUPPORT_GOLDSOURCE_INPUT)
|
||||
extern int iVisibleMouse;
|
||||
#endif
|
||||
|
||||
float HUD_GetFOV( void );
|
||||
|
||||
@ -154,7 +156,8 @@ int CHud::Redraw( float flTime, int intermission )
|
||||
SPR_DrawAdditive( i, x, y, NULL );
|
||||
}
|
||||
|
||||
if( g_iVisibleMouse )
|
||||
#if defined(SUPPORT_GOLDSOURCE_INPUT)
|
||||
if( iVisibleMouse )
|
||||
{
|
||||
void IN_GetMousePos( int *mx, int *my );
|
||||
int mx, my;
|
||||
@ -173,6 +176,7 @@ int CHud::Redraw( float flTime, int intermission )
|
||||
// Draw the logo at 20 fps
|
||||
SPR_DrawAdditive( 0, mx, my, NULL );
|
||||
}
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ cvar_t *cam_maxDist;
|
||||
cvar_t *cam_smooth;
|
||||
cvar_t *cam_lookahead;
|
||||
|
||||
extern float camYaw;
|
||||
static float camYaw;
|
||||
|
||||
// pitch, yaw, dist
|
||||
vec3_t cam_ofs;
|
||||
|
@ -122,7 +122,7 @@ typedef unsigned int DWORD;
|
||||
|
||||
#define MOUSE_BUTTON_COUNT 5
|
||||
|
||||
float mouse_pos_extern[2];
|
||||
extern float mouse_pos_extern[2];
|
||||
|
||||
// use IN_SetVisibleMouse to set:
|
||||
int iVisibleMouse = 1;
|
||||
@ -151,8 +151,6 @@ extern cvar_t *cl_forwardspeed;
|
||||
extern cvar_t *cl_pitchspeed;
|
||||
extern cvar_t *cl_movespeedkey;
|
||||
|
||||
float camYaw;
|
||||
|
||||
#ifdef _WIN32
|
||||
static double s_flRawInputUpdateTime = 0.0f;
|
||||
static bool m_bRawInput = false;
|
||||
|
@ -67,7 +67,7 @@ void VectorAngles( const float *forward, float *angles );
|
||||
|
||||
extern engine_studio_api_t IEngineStudio;
|
||||
|
||||
extern float mouse_pos_extern[2];
|
||||
float mouse_pos_extern[2];
|
||||
extern cvar_t *cam_idealdist;
|
||||
extern cvar_t *cam_minDist;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user