Course layout for a type M2 course has been made. #story[1193]
This commit is contained in:
@@ -91,7 +91,9 @@ public class Event {
|
||||
break;
|
||||
case 2: raceXMLFile = "mock/mockXML/iMapLayout.xml";
|
||||
break;
|
||||
default:raceXMLFile = "mock/mockXML/raceTest.xml";
|
||||
case 3: raceXMLFile = "mock/mockXML/mMapLayout.xml";
|
||||
break;
|
||||
default: raceXMLFile = "mock/mockXML/raceTest.xml";
|
||||
|
||||
}
|
||||
String boatsXMLFile = "mock/mockXML/boatTest.xml";
|
||||
@@ -208,7 +210,7 @@ public class Event {
|
||||
public static String setRaceXMLAtCurrentTimeToNow(String raceXML) {
|
||||
|
||||
//The start time is current time + 4 minutes. prestart is 3 minutes, and we add another minute.
|
||||
long millisecondsToAdd = Constants.RacePreStartTime + (1 * 60 * 1000);
|
||||
long millisecondsToAdd = Constants.RacePreStartTime + Constants.RacePreparatoryTime;
|
||||
long secondsToAdd = millisecondsToAdd / 1000;
|
||||
//Scale the time using our time scalar.
|
||||
secondsToAdd = secondsToAdd / Constants.RaceTimeScale;
|
||||
|
||||
Reference in New Issue
Block a user