Skip to content

Commit

Permalink
Merge pull request #64 from Fueredoriku/feature/bugfix
Browse files Browse the repository at this point in the history
Fixed bug where music wouldn't stop playing when Popping SceneManager…
  • Loading branch information
Fueredoriku committed Apr 25, 2022
2 parents 32dcbb6 + d80c4d5 commit 2af115a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private void setActionType(SpriteConnectorEnum actionTypeEnum, ActionType action
private void post() throws IOException{
request.postMoves(new Serializer().serializeActions(ap.inputs), gameID, playerID);
this.isWaiting = true;
// Diasble UI
// Disable UI
for (Actor actor : stage.getActors()) {
actor.setVisible(false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public Scene Pop(){
if (scenes.isEmpty()){
throw new IllegalStateException("Can't pop scene from stack when stack is empty.");
}
scenes.peek().disposeEarly();
Scene poppedScene = scenes.pop();
if (!scenes.isEmpty()) {
scenes.peek().prepareScene();
Expand Down

0 comments on commit 2af115a

Please sign in to comment.