From a185c11f2397c0296a4b62cc266b4fa00a63c1e2 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 14 May 2008 21:07:10 +0000 Subject: console, camera & interpolation --- src/render/draw.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render') diff --git a/src/render/draw.cc b/src/render/draw.cc index 7c35bf3..9292460 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -431,7 +431,7 @@ void draw_pass_model_fx() t = (core::application()->time() + entity->state()->fuzz() - (*lit)->offset()) * (*lit)->frequency(); if (!(*lit)->strobe() || (( t - floorf(t)) <= (*lit)->time())) { - math::Vector3f location = entity->state()->location() + (entity->axis() * (*lit)->location()); + math::Vector3f location = entity->state()->location() + (entity->state()->axis() * (*lit)->location()); float light_size = 0.0625 * (*lit)->radius(); if ((*lit)->render_texture != flare_texture) { @@ -482,7 +482,7 @@ void draw_pass_model_fx() t = 0.75f + t/2; for(std::list::iterator eit = entity->model()->model_engine.begin(); eit != entity->model()->model_engine.end(); eit++) { - math::Vector3f location = entity->state()->location() + (entity->axis() * (*eit)->location()); + math::Vector3f location = entity->state()->location() + (entity->state()->axis() * (*eit)->location()); float engine_size = 0.0625 * (*eit)->radius() * t; math::Color color(1.0f, 0.0f, 0.0f, 0.9f * u); -- cgit v1.2.3