Move M_PI definition to header.

This commit is contained in:
Andrey Akhmichin 2021-06-20 13:49:04 +05:00
parent a541a9699c
commit 6e7653eec1
2 changed files with 9 additions and 8 deletions

View File

@ -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"
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 );

View File

@ -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