mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
- Fixed Null Pointer
- Build Should pass Tags: #story[1245]
This commit is contained in:
@@ -341,10 +341,10 @@ public class GameClient {
|
||||
}
|
||||
|
||||
if (raceFinished) {
|
||||
System.out.println(raceViewController);
|
||||
raceViewController.showFinishDialog(finishedBoats);
|
||||
Sounds.playFinishSound();
|
||||
close();
|
||||
ViewManager.getInstance().getGameClient().stopGame();
|
||||
//loadFinishScreenView();
|
||||
}
|
||||
raceState.setRaceFinished();
|
||||
@@ -450,7 +450,7 @@ public class GameClient {
|
||||
if (server != null) server.terminate();
|
||||
if (socketThread != null) socketThread.setSocketToClose();
|
||||
server = null;
|
||||
socketThread = null;
|
||||
// socketThread = null;
|
||||
}
|
||||
|
||||
public Map<Integer, ClientYacht> getAllBoatsMap() {
|
||||
|
||||
@@ -200,7 +200,6 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel
|
||||
public void showFinishDialog(ArrayList<ClientYacht> finishedBoats) {
|
||||
raceState.setRaceStarted(false);
|
||||
finishDialogController.setFinishedBoats(finishedBoats);
|
||||
ViewManager.getInstance().getGameClient().stopGame();
|
||||
finishScreenDialog.show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user