diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-15 19:24:55 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-15 19:24:55 +0000 |
commit | 28ba97bdd8fb6ca352dc49dba01a66bd155ad523 (patch) | |
tree | eb4abd0505eb842e15201783529814bda1ae6e76 /src/render/dust.cc | |
parent | 1f0dbeeabdffff096908473168898c5fa63bcff0 (diff) |
entity extensions
Diffstat (limited to 'src/render/dust.cc')
-rw-r--r-- | src/render/dust.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/dust.cc b/src/render/dust.cc index 81d40fb..4b74ef9 100644 --- a/src/render/dust.cc +++ b/src/render/dust.cc @@ -120,13 +120,13 @@ void Dust::draw(math::Color const &dustcolor) float dsquare = 0; for (size_t j = 0; j < 3; j++) { dsquare += (core::localcontrol()->location()[j] - dust[i*3+j]) * (core::localcontrol()->location()[j] - dust[i*3+j]); - v[j] = dust[i*3+j] - core::localcontrol()->state()->axis().forward()[j] * traillength; + v[j] = dust[i*3+j] - core::localcontrol()->axis().forward()[j] * traillength; } if (dsquare > (core::localcontrol()->radius() + DUSTDISTANCE)*(core::localcontrol()->radius() + DUSTDISTANCE)) { for (size_t j = 0; j < 3; j++) { dust[i*3+j] = core::localcontrol()->location()[j] + (math::randomf(2) - 1) * (DUSTDISTANCE + core::localcontrol()->radius()); - v[j] = dust[i*3+j] - core::localcontrol()->state()->axis().forward()[j] * traillength; + v[j] = dust[i*3+j] - core::localcontrol()->axis().forward()[j] * traillength; } } |