From 859e769f22195ba971de037c883c0d8552459fe7 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 4 Jul 2017 15:23:51 -0700 Subject: Synchronizing various data-structures. --- src/map/if/ifTime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/if/ifTime.c') diff --git a/src/map/if/ifTime.c b/src/map/if/ifTime.c index c2ba40e8..9ceef147 100644 --- a/src/map/if/ifTime.c +++ b/src/map/if/ifTime.c @@ -315,6 +315,9 @@ void If_ManComputeRequired( If_Man_t * p ) If_ManMarkMapping( p ); if ( p->pManTim == NULL ) { + // get the global required times + p->RequiredGlo = If_ManDelayMax( p, 0 ); + // consider the case when the required times are given if ( p->pPars->pTimesReq && !p->pPars->fAreaOnly ) { @@ -340,9 +343,6 @@ void If_ManComputeRequired( If_Man_t * p ) } else { - // get the global required times - p->RequiredGlo = If_ManDelayMax( p, 0 ); - // find new delay target if ( p->pPars->nRelaxRatio && p->pPars->DelayTargetNew == 0 ) p->pPars->DelayTargetNew = p->RequiredGlo * (100.0 + p->pPars->nRelaxRatio) / 100.0; -- cgit v1.2.3