Fix client visual studio build

This commit is contained in:
mittorn 2017-01-10 16:45:52 +07:00
parent 02532a478b
commit 5da21e38d2
3 changed files with 6 additions and 2 deletions

View File

@ -993,7 +993,7 @@ void CHudSpectator::DrawOverviewLayer()
if ( hasMapImage) if ( hasMapImage)
{ {
i = m_MapSprite->numframes / (4*3); i = m_MapSprite->numframes / (4*3);
i = sqrt(i); i = sqrt(float(i));
xTiles = i*4; xTiles = i*4;
yTiles = i*3; yTiles = i*3;
} }

View File

@ -54,7 +54,7 @@ float rel_pitch;
#define IMPULSE_DOWN 2 #define IMPULSE_DOWN 2
#define IMPULSE_UP 4 #define IMPULSE_UP 4
bool CL_IsDead(); int CL_IsDead( void );
Vector dead_viewangles(0, 0, 0); Vector dead_viewangles(0, 0, 0);
void IN_ToggleButtons( float forwardmove, float sidemove ) void IN_ToggleButtons( float forwardmove, float sidemove )

View File

@ -32,6 +32,10 @@
extern vec3_t vec3_origin; extern vec3_t vec3_origin;
#ifdef _MSC_VER
vec3_t vec3_origin;
#endif
double sqrt( double x ); double sqrt( double x );
float Length( const float *v ) float Length( const float *v )