From 13ab30895719a479d49d3804e7a05058a2453614 Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Fri, 23 Dec 2016 09:27:41 +0300 Subject: [PATCH] DEG2RAD --- cathook/src/common.h | 2 ++ cathook/src/helpers.cpp | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cathook/src/common.h b/cathook/src/common.h index 27d03a1a..c2f3a88e 100644 --- a/cathook/src/common.h +++ b/cathook/src/common.h @@ -30,6 +30,8 @@ #define CON_NAME "cat" #define CON_PREFIX CON_NAME "_" +#define DEG2RAD(x) (float)(x) * (PI / 180.0f) + #define DEBUG_SEGV true #if DEBUG_SEGV == true diff --git a/cathook/src/helpers.cpp b/cathook/src/helpers.cpp index 8768d590..9282fc69 100644 --- a/cathook/src/helpers.cpp +++ b/cathook/src/helpers.cpp @@ -241,10 +241,6 @@ void FixMovement(CUserCmd& cmd, Vector& viewangles) { cmd->sidemove = sin(yaw) * speed;*/ } -float deg2rad(float deg) { - return deg * (PI / 180); -} - bool IsPlayerInvisible(CachedEntity* player) { int cond = CE_INT(player, netvar.iCond); int mask = cloaked;