summaryrefslogtreecommitdiffstats
path: root/src/map/if/ifTime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/if/ifTime.c')
-rw-r--r--src/map/if/ifTime.c6
1 files changed, 3 insertions, 3 deletions
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;