Browse Source

Fix compilation.

hltopdown
Andrey Akhmichin 5 years ago
parent
commit
e6b4edf758
  1. 8
      cl_dll/hud_redraw.cpp
  2. 2
      cl_dll/in_camera.cpp
  3. 4
      cl_dll/input_goldsource.cpp
  4. 2
      cl_dll/view.cpp

8
cl_dll/hud_redraw.cpp

@ -29,7 +29,9 @@ int grgLogoFrame[MAX_LOGO_FRAMES] = @@ -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 ) @@ -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 ) @@ -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;
}

2
cl_dll/in_camera.cpp

@ -74,7 +74,7 @@ cvar_t *cam_maxDist; @@ -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;

4
cl_dll/input_goldsource.cpp

@ -122,7 +122,7 @@ typedef unsigned int DWORD; @@ -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; @@ -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;

2
cl_dll/view.cpp

@ -67,7 +67,7 @@ void VectorAngles( const float *forward, float *angles ); @@ -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…
Cancel
Save