From: david Date: Wed, 6 Nov 2002 16:04:04 +0000 (+0000) Subject: Fixed bug in timed update cycling. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a8f40e077101a8d26cb6f98b0ac136d9a5cf3970;p=flightgear.git Fixed bug in timed update cycling. --- diff --git a/src/Model/model.cxx b/src/Model/model.cxx index b32d054ee..895923bf9 100644 --- a/src/Model/model.cxx +++ b/src/Model/model.cxx @@ -507,10 +507,9 @@ TimedAnimation::update () float sim_time_sec = globals->get_sim_time_sec(); if ((sim_time_sec - _last_time_sec) >= _duration_sec) { _last_time_sec = sim_time_sec; + _step++; if (_step >= getBranch()->getNumKids()) _step = 0; - else - _step++; ((ssgSelector *)getBranch())->selectStep(_step); } }