diff --git a/src/pilot.h b/src/pilot.h index 98a7d1b..5c1a2aa 100644 --- a/src/pilot.h +++ b/src/pilot.h @@ -12,6 +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_FADEOUT 1000 // Time fadeout. // Aproximation for pilot size. diff --git a/src/space.c b/src/space.c index 1643d1f..53b47a9 100644 --- a/src/space.c +++ b/src/space.c @@ -537,7 +537,7 @@ void space_render(double dt) { glBegin(GL_LINES); // Lines will be based on velocity. - m = 250*(double)(t-timer)/(HYPERSPACE_STARS_BLUR); + m = HYPERSPACE_STARS_LENGTH * (double)(t-timer) / (HYPERSPACE_STARS_BLUR); x = m*cos(VANGLE(player->solid->vel)+M_PI); y = m*sin(VANGLE(player->solid->vel)+M_PI);