mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-03 03:50:40 +00:00
normalize includes: zone
This commit is contained in:
+4
-5
@@ -1,9 +1,8 @@
|
||||
#if defined(_MSC_VER)
|
||||
#define _USE_MATH_DEFINES
|
||||
#endif
|
||||
#include <cmath>
|
||||
|
||||
#include "fastmath.h"
|
||||
|
||||
#include <numbers>
|
||||
|
||||
FastMath g_Math;
|
||||
|
||||
// This should match EQ's sin/cos LUTs
|
||||
@@ -14,7 +13,7 @@ FastMath::FastMath()
|
||||
int si = 128;
|
||||
float res;
|
||||
do {
|
||||
res = std::cos(static_cast<float>(ci) * M_PI * 2 / 512);
|
||||
res = std::cos(static_cast<float>(ci) * std::numbers::pi * 2 / 512);
|
||||
lut_cos[ci] = res;
|
||||
if (si == 512)
|
||||
si = 0;
|
||||
|
||||
Reference in New Issue
Block a user