Fixed fileParser in order to read time scale in decimal

- json-simple can read either long or double. Updated getScaleTime to make it capable to read a decimal number.

#fix #story[5]
This commit is contained in:
Haoming Yin
2017-03-08 14:13:23 +13:00
parent 2adf39ee43
commit 0ab2e7881f
4 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ public class App
int numberOfBoats = (int) fp.getRaceSize();
//get time scale
int timeScale = (int) fp.getTimeScale();
double timeScale = fp.getTimeScale();
race.setTimeScale(timeScale);
for (Map<String, Object> team : teams) {