mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Changed the spawn point to behind start line and calculated quadrant to make sure yachts spawn behind start line in different map scenario.
#story[1117]
This commit is contained in:
@@ -200,6 +200,14 @@ public class MainServerThread extends Observable implements Runnable, ClientConn
|
|||||||
GeoPoint spawnMark = GeoUtility
|
GeoPoint spawnMark = GeoUtility
|
||||||
.getGeoCoordinate(midpoint, perpendicularAngle, distanceApart * DISTANCEFACTOR);
|
.getGeoCoordinate(midpoint, perpendicularAngle, distanceApart * DISTANCEFACTOR);
|
||||||
|
|
||||||
|
if (yacht.getHeading() < perpendicularAngle) {
|
||||||
|
spawnMark = GeoUtility
|
||||||
|
.getGeoCoordinate(spawnMark, perpendicularAngle + 90, DISTANCEFACTOR);
|
||||||
|
} else {
|
||||||
|
spawnMark = GeoUtility
|
||||||
|
.getGeoCoordinate(spawnMark, perpendicularAngle + 270, DISTANCEFACTOR);
|
||||||
|
}
|
||||||
|
|
||||||
yacht.setLocation(spawnMark);
|
yacht.setLocation(spawnMark);
|
||||||
boatIndex++;
|
boatIndex++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user