mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Move M_PI definition to header.
This commit is contained in:
parent
a541a9699c
commit
6e7653eec1
@ -25,6 +25,7 @@
|
|||||||
#include "screenfade.h"
|
#include "screenfade.h"
|
||||||
#include "shake.h"
|
#include "shake.h"
|
||||||
#include "hltv.h"
|
#include "hltv.h"
|
||||||
|
#include "view.h"
|
||||||
|
|
||||||
// Spectator Mode
|
// Spectator Mode
|
||||||
extern "C"
|
extern "C"
|
||||||
@ -36,14 +37,6 @@ extern "C"
|
|||||||
int iIsSpectator;
|
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"
|
extern "C"
|
||||||
{
|
{
|
||||||
int CL_IsThirdPerson( void );
|
int CL_IsThirdPerson( void );
|
||||||
|
@ -9,6 +9,14 @@
|
|||||||
#define VIEWH
|
#define VIEWH
|
||||||
#pragma once
|
#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_StartPitchDrift( void );
|
||||||
void V_StopPitchDrift( void );
|
void V_StopPitchDrift( void );
|
||||||
#endif // !VIEWH
|
#endif // !VIEWH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user