From fce918506d2f7242d61b6e3f50ad633cce5dbdbf Mon Sep 17 00:00:00 2001 From: Allanis Date: Wed, 27 Feb 2013 02:23:33 +0000 Subject: [PATCH] [Fix?] Attempt to fix hyperspace on certain arcitecures. ABS was a bit off. --- src/lephisto.h | 2 +- src/pilot.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lephisto.h b/src/lephisto.h index cc0d148..6f3be3b 100644 --- a/src/lephisto.h +++ b/src/lephisto.h @@ -5,7 +5,7 @@ #define MALLOC_L(type)(malloc(sizeof(type))) #define CALLOC_L(type)(calloc(1, sizeof(type))) -#define ABS(x) ((x<0)?-(x):(x)) +#define ABS(x) (((x)<0)?-(x):(x)) #define MAX(x,y) (((x)>(y))?(x):(y)) #define MIN(x,y) (((x)>(y))?(y):(x)) diff --git a/src/pilot.h b/src/pilot.h index 5c1a2aa..708a8f4 100644 --- a/src/pilot.h +++ b/src/pilot.h @@ -12,7 +12,7 @@ #define HYPERSPACE_ENGINE_DELAY 3000 // Warm up the engines. #define HYPERSPACE_FLY_DELAY 5000 // Time taken to hyperspace. #define HYPERSPACE_STARS_BLUR 3000 // Time stars blur. -#define HYPERSPACE_STARS_LENGTH 600 // Length the stars blur to at max. +#define HYPERSPACE_STARS_LENGTH 500 // Length the stars blur to at max. #define HYPERSPACE_FADEOUT 1000 // Time fadeout. // Aproximation for pilot size.