Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/render/dust.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/render/dust.cc b/src/render/dust.cc
index cb8d84d..fe74536 100644
--- a/src/render/dust.cc
+++ b/src/render/dust.cc
@@ -106,12 +106,11 @@ void Dust::draw(math::Color const &dustcolor)
}
- traillength = math::max(math::max(core::localcontrol()->movement(), core::localcontrol()->speed() * 0.5f), 0.5f);
+ traillength = math::max(core::localcontrol()->speed() * 0.5f, 0.5f);
traillength = traillength * TRAILLENGHT / LOWSPEEDLIMIT;
math::Color color(dustcolor);
- alpha = math::max(core::localcontrol()->movement(), core::localcontrol()->speed() * 0.5f);
- math::clamp(alpha, 0.0f, 1.0f);
+ alpha = math::min(core::localcontrol()->speed(), 1.0f);
color.a = 0.25f * alpha;
gl::begin(gl::Lines);