diff options
Diffstat (limited to 'src/render/draw.cc')
-rw-r--r-- | src/render/draw.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index c9da6d4..780c77e 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -565,7 +565,7 @@ void draw_fragment(const model::Fragment *fragment, bool draw_details) void draw_model_fragments(model::Model *model, const math::Color & color_primary, const math::Color & color_secondary, - const float time, const bool detail, const bool power, const float thrust) + const float enginetime, const bool detail, const bool power, const float thrust) { // default material, lighted and geometry color const model::Material *material = 0; @@ -588,7 +588,7 @@ void draw_model_fragments(model::Model *model, gl::translate(group->location()); if (group->type() == model::FragmentGroup::Rotate) { - float rotation_angle = math::degrees360f(time * group->speed()); + const float rotation_angle = math::degrees360f((group->engine() ? enginetime : core::application()->time()) * group->speed()); gl::rotate(-rotation_angle, group->axis().forward()); } else { gl::multmatrix(group->axis()); |