Browse Source

Move M_PI definition to header.

hl_urbicide
Andrey Akhmichin 3 years ago
parent
commit
6e7653eec1
  1. 9
      cl_dll/view.cpp
  2. 8
      cl_dll/view.h

9
cl_dll/view.cpp

@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
#include "screenfade.h"
#include "shake.h"
#include "hltv.h"
#include "view.h"
// Spectator Mode
extern "C"
@ -36,14 +37,6 @@ extern "C" @@ -36,14 +37,6 @@ extern "C"
int iIsSpectator;
}
#if !defined(M_PI)
#define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h
#endif
#if !defined(M_PI_F)
#define M_PI_F (float)M_PI
#endif
extern "C"
{
int CL_IsThirdPerson( void );

8
cl_dll/view.h

@ -9,6 +9,14 @@ @@ -9,6 +9,14 @@
#define VIEWH
#pragma once
#if !defined(M_PI)
#define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h
#endif
#if !defined(M_PI_F)
#define M_PI_F (float)M_PI
#endif
void V_StartPitchDrift( void );
void V_StopPitchDrift( void );
#endif // !VIEWH

Loading…
Cancel
Save