From 6cb99dab3edb416b3dc70e49dc291306971c663b Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 14 Apr 2012 03:56:39 +0000 Subject: [PATCH] - Fix type conversion warning. SVN r3563 (trunk) --- src/p_effect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_effect.cpp b/src/p_effect.cpp index 9a0986fb1..a7f74a1ca 100644 --- a/src/p_effect.cpp +++ b/src/p_effect.cpp @@ -728,7 +728,7 @@ void P_DrawRailTrail (AActor *source, const FVector3 &start, const FVector3 &end if (color2 != -1 && r_rail_trailsparsity > 0 && spawnclass == NULL) { FVector3 trail_step = step * r_rail_trailsparsity * sparsity; - int trail_steps = steps * r_rail_trailsparsity / sparsity; + int trail_steps = xs_FloorToInt(steps * r_rail_trailsparsity / sparsity); color2 = color2 == 0 ? -1 : ParticleColor(color2); FVector3 diff(0, 0, 0);