Fixed small display error with current position. #story[1311]

main
zwu18 8 years ago
parent 051811b97d
commit 4132b6733b

@ -648,7 +648,7 @@ public class RaceViewController extends Controller {
gauge.setValue(raceState.getBoat(raceState.getPlayerBoatID()).getCurrentSpeed()); gauge.setValue(raceState.getBoat(raceState.getPlayerBoatID()).getCurrentSpeed());
for (VisualiserBoat boat : boatInfoTable.getItems()){ for (VisualiserBoat boat : boatInfoTable.getItems()){
if(raceState.getPlayerBoatID()==boat.getSourceID()){ if(raceState.getPlayerBoatID()==boat.getSourceID()){
gauge.setTitle("Position: " + boatInfoTable.getItems().indexOf(boat)+1); gauge.setTitle("Position: " + (boatInfoTable.getItems().indexOf(boat)+1));
} }
} }
} catch (BoatNotFoundException e) { } catch (BoatNotFoundException e) {

Loading…
Cancel
Save