Fixed some issue after merge as well as set the minimum race time to 2 minutes. #story[1323]

This commit is contained in:
Fan-Wu Yang
2017-09-26 16:48:23 +13:00
parent d6884a6981
commit 1ca276ec62
2 changed files with 3 additions and 2 deletions
@@ -111,7 +111,8 @@ public class Event {
this.raceXML = RaceXMLCreator.alterRaceToWind(this.raceXML, XMLFileType.Contents, -1);
} else {
this.raceXML = RaceXMLCreator.alterRaceToWind(this.raceXML, XMLFileType.Contents, windAngle, false);
this.raceXML = Event.setRaceXMLAtCurrentTimeToNow(XMLReader.readXMLFileToString(raceXMLFile, StandardCharsets.UTF_8));
this.raceXML = RaceXMLCreator.alterRaceToWind(this.raceXML, XMLFileType.Contents, windAngle);
this.raceXML = RaceXMLCreator.scaleRaceSize(raceXML,
windSpeed, raceLength);
}