[Change] Spoke too soon. Star deformation length is now defined.

This commit is contained in:
Allanis 2013-02-26 18:27:06 +00:00
parent 45d75779dd
commit ffd806bea6
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
#define HYPERSPACE_ENGINE_DELAY 3000 // Warm up the engines. #define HYPERSPACE_ENGINE_DELAY 3000 // Warm up the engines.
#define HYPERSPACE_FLY_DELAY 5000 // Time taken to hyperspace. #define HYPERSPACE_FLY_DELAY 5000 // Time taken to hyperspace.
#define HYPERSPACE_STARS_BLUR 3000 // Time stars blur. #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. #define HYPERSPACE_FADEOUT 1000 // Time fadeout.
// Aproximation for pilot size. // Aproximation for pilot size.

View File

@ -537,7 +537,7 @@ void space_render(double dt) {
glBegin(GL_LINES); glBegin(GL_LINES);
// Lines will be based on velocity. // 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); x = m*cos(VANGLE(player->solid->vel)+M_PI);
y = m*sin(VANGLE(player->solid->vel)+M_PI); y = m*sin(VANGLE(player->solid->vel)+M_PI);