From 41dbd754dee344c79207e0821df6bcc262f90726 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 14 Jul 2019 12:49:03 +0300 Subject: Partial RunningScript part2 --- src/core/common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/common.h') diff --git a/src/core/common.h b/src/core/common.h index 4b7bcb0a..e57c59d8 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -178,3 +178,4 @@ void re3_assert(const char *expr, const char *filename, unsigned int lineno, con #define max(a, b) (((a) > (b)) ? (a) : (b)) #define min(a, b) (((a) < (b)) ? (a) : (b)) +#define abs(a) (((a) < 0) ? (-a) : (a)) -- cgit v1.2.3 From a6ca999ed43ac59a960b463b27f2ad65b2c523c2 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Mon, 15 Jul 2019 12:21:24 +0300 Subject: test --- src/core/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/common.h') diff --git a/src/core/common.h b/src/core/common.h index e57c59d8..fd961dd7 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -178,4 +178,4 @@ void re3_assert(const char *expr, const char *filename, unsigned int lineno, con #define max(a, b) (((a) > (b)) ? (a) : (b)) #define min(a, b) (((a) < (b)) ? (a) : (b)) -#define abs(a) (((a) < 0) ? (-a) : (a)) +#define ABS(a) (((a) < 0) ? (-a) : (a)) -- cgit v1.2.3 From fd01f9b25cdc3b527a886ee6b9237b01a5475295 Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 18 Jul 2019 15:41:09 +0200 Subject: CAutomobile::ProcessControl done --- src/core/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/common.h') diff --git a/src/core/common.h b/src/core/common.h index fd961dd7..c241e1c6 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -139,7 +139,8 @@ inline float sq(float x) { return x*x; } #define SQR(x) ((x) * (x)) #define PI M_PI -#define TWOPI PI*2 +#define TWOPI (PI*2) +#define HALFPI (PI/2) #define DEGTORAD(x) ((x) * PI / 180.0f) #define RADTODEG(x) ((x) * 180.0f / PI) -- cgit v1.2.3 From a04d8f24be355b69bbba88b50055f2b1420fc29f Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Mon, 8 Jul 2019 21:44:32 +0200 Subject: ComputeDopplerEffectedFrequency --- src/core/common.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/common.h') diff --git a/src/core/common.h b/src/core/common.h index c241e1c6..2ca64c1b 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -97,11 +97,11 @@ extern void **rwengine; #define SCREEN_SCALE_AR(a) (a) #endif -#include "math/maths.h" -#include "math/Vector.h" -#include "math/Vector2D.h" -#include "math/Matrix.h" -#include "math/Rect.h" +#include "maths.h" +#include "Vector.h" +#include "Vector2D.h" +#include "Matrix.h" +#include "Rect.h" class CRGBA { -- cgit v1.2.3