Fixed bug that stopped clients from getting updated xml data.

#issue[48] #bug
This commit is contained in:
Calum
2017-08-13 20:24:03 +12:00
parent d79b0421c2
commit 6218d5506b
4 changed files with 44 additions and 47 deletions
+2 -2
View File
@@ -450,9 +450,9 @@ public class Yacht {
private void turnTowardsHeading(Double newHeading) {
Double newVal = heading - newHeading;
if (Math.floorMod(newVal.longValue(), 360L) > 180) {
adjustHeading(TURN_STEP);
adjustHeading(TURN_STEP / 5);
} else {
adjustHeading(-TURN_STEP);
adjustHeading(-TURN_STEP / 5);
}
}