From ffd806bea668e4fcca3e1eb02d0abdd486a54580 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Tue, 26 Feb 2013 18:27:06 +0000
Subject: [PATCH] [Change] Spoke too soon. Star deformation length is now
 defined.

---
 src/pilot.h | 1 +
 src/space.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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);