Skip to content

Commit

Permalink
Merge pull request #122 from booksaw/FixGoldShop
Browse files Browse the repository at this point in the history
Fix Gold Shop
  • Loading branch information
booksaw authored May 3, 2022
2 parents 381ad7c + 779f6e4 commit 802219e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/com/mygdx/pirategame/save/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ public void handleInput(float dt) {
if (Gdx.input.isKeyJustPressed(Input.Keys.E)) {
if (gameStatus == GOLD_SHOP) {
closeShop();
gameStatus = GAME_RUNNING;
} else if (gameStatus == GAME_RUNNING) {
openShop();
}
Expand Down Expand Up @@ -919,6 +920,7 @@ public void closeShop() {
goldShop.hide();
table.setVisible(true);
pauseTable.setVisible(false);
goldShop = null;
resume();
}

Expand Down

0 comments on commit 802219e

Please sign in to comment.