mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-07-24 00:35:27 +02:00
Utfører små endringer. Fikser en manglende vegg i Vault Assault
This commit is contained in:
@@ -81,8 +81,8 @@ public class BoardActiveScreen extends InteractiveScreen {
|
||||
roboRallyWrapper.setScreen(roboRallyWrapper.screenManager.getPowerDownScreen(roboRallyWrapper));
|
||||
break;
|
||||
case SKIP_STAY_IN_POWER_DOWN:
|
||||
roboRallyWrapper.client.sendElement(false);
|
||||
roboRallyWrapper.setScreen(roboRallyWrapper.screenManager.getLoadingScreen(roboRallyWrapper));
|
||||
roboRallyWrapper.client.sendElement(false);
|
||||
break;
|
||||
default:
|
||||
//Ignored
|
||||
|
@@ -110,6 +110,7 @@ class RoboRallyClientListener extends Listener {
|
||||
*/
|
||||
private void receiveHand(ProgrammingCardDeck newHand) {
|
||||
new Thread(() -> {
|
||||
//Prevents a bug where the game
|
||||
while (wrapper.roboRallyGame.getGameState() != GameState.WAITING_FOR_CARDS_FROM_SERVER) {
|
||||
try {
|
||||
TimeUnit.MILLISECONDS.sleep(100);
|
||||
|
@@ -869,8 +869,8 @@ public class Board {
|
||||
case WALL_LASER_TRIPLE:
|
||||
laserParticleType = ParticleType.LASER_BEAM_TRIPLE;
|
||||
break;
|
||||
default:
|
||||
throw new IllegalArgumentException("Invalid laser type encountered.");
|
||||
default:
|
||||
throw new IllegalArgumentException("Invalid laser type encountered.");
|
||||
}
|
||||
Particle laserParticle = new Particle(laserParticleType, laserDirection);
|
||||
int positionX = addPosition.getXCoordinate();
|
||||
|
Reference in New Issue
Block a user