[chronojump] RunInterval simulated and doublecontacts works now



commit 0d809ec1446ce3282aac25d6a42daeb556db2d7e
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jan 7 23:59:16 2013 +0100

    RunInterval simulated and doublecontacts works now

 src/execute/run.cs |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/execute/run.cs b/src/execute/run.cs
index 2c394b6..d65f6b2 100644
--- a/src/execute/run.cs
+++ b/src/execute/run.cs
@@ -586,6 +586,9 @@ public class RunIntervalExecute : RunExecute
 						//if interval run is "unlimited" not limited by tracks, nor time, 
 						//then play with the progress bar until finish button is pressed
 						
+						if(simulated)
+							timestamp = simulatedTimeLast * 1000; //conversion to milliseconds
+
 						if(checkDoubleContact) {
 							if(timestamp <= checkDoubleContactTime) {
 								/*
@@ -622,10 +625,6 @@ public class RunIntervalExecute : RunExecute
 								}
 							}
 						}
-				
-
-						if(simulated)
-								timestamp = simulatedTimeLast * 1000; //conversion to milliseconds
 
 						double myRaceTime = lastTc + timestamp/1000.0;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]