mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
fixed bug
#story[1250]
This commit is contained in:
@@ -403,7 +403,6 @@ public class GameState implements Runnable {
|
|||||||
serverYacht.setLocation(
|
serverYacht.setLocation(
|
||||||
calculateBounceBack(serverYacht, originalLocation, BOUNCE_DISTANCE_YACHT)
|
calculateBounceBack(serverYacht, originalLocation, BOUNCE_DISTANCE_YACHT)
|
||||||
);
|
);
|
||||||
System.out.println("DID BOUNCE BACK");
|
|
||||||
serverYacht.setCurrentVelocity(
|
serverYacht.setCurrentVelocity(
|
||||||
serverYacht.getCurrentVelocity() * COLLISION_VELOCITY_PENALTY
|
serverYacht.getCurrentVelocity() * COLLISION_VELOCITY_PENALTY
|
||||||
);
|
);
|
||||||
@@ -424,7 +423,6 @@ public class GameState implements Runnable {
|
|||||||
calculateBounceBack(serverYacht, collidedMark, BOUNCE_DISTANCE_MARK)
|
calculateBounceBack(serverYacht, collidedMark, BOUNCE_DISTANCE_MARK)
|
||||||
);
|
);
|
||||||
|
|
||||||
System.out.println("DID BOUNCE BACK2");
|
|
||||||
serverYacht.setCurrentVelocity(
|
serverYacht.setCurrentVelocity(
|
||||||
serverYacht.getCurrentVelocity() * COLLISION_VELOCITY_PENALTY
|
serverYacht.getCurrentVelocity() * COLLISION_VELOCITY_PENALTY
|
||||||
);
|
);
|
||||||
@@ -440,7 +438,6 @@ public class GameState implements Runnable {
|
|||||||
BOUNCE_DISTANCE_YACHT)
|
BOUNCE_DISTANCE_YACHT)
|
||||||
);
|
);
|
||||||
|
|
||||||
System.out.println("DID BOUNCE BACK3");
|
|
||||||
serverYacht.setCurrentVelocity(
|
serverYacht.setCurrentVelocity(
|
||||||
serverYacht.getCurrentVelocity() * COLLISION_VELOCITY_PENALTY
|
serverYacht.getCurrentVelocity() * COLLISION_VELOCITY_PENALTY
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user