Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- fixed: The rail trail should use r_trail_sparsity, not r_spiral_spa…
…rsity.

- fixed: Spawning actors on the rail trail must ignore the sparsity CVARs completely.
  • Loading branch information
coelckers committed May 19, 2017
1 parent c8e631b commit c1e64fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/p_effect.cpp
Expand Up @@ -814,7 +814,7 @@ void P_DrawRailTrail(AActor *source, TArray<SPortalHit> &portalhits, int color1,
// Create the inner trail.
if (color2 != -1 && r_rail_trailsparsity > 0 && spawnclass == NULL)
{
double stepsize = 3 * r_rail_spiralsparsity * sparsity;
double stepsize = 3 * r_rail_trailsparsity * sparsity;
int trail_steps = xs_FloorToInt(steps * r_rail_trailsparsity / sparsity);

color2 = color2 == 0 ? -1 : ParticleColor(color2);
Expand Down Expand Up @@ -891,7 +891,7 @@ void P_DrawRailTrail(AActor *source, TArray<SPortalHit> &portalhits, int color1,
if (sparsity < 1)
sparsity = 32;

double stepsize = 3 * r_rail_spiralsparsity * sparsity;
double stepsize = sparsity;
int trail_steps = (int)((steps * 3) / sparsity);
DVector3 diff(0, 0, 0);

Expand Down

0 comments on commit c1e64fa

Please sign in to comment.