Skip to content

Commit

Permalink
Refactor: rename method renderCurrentState -> `updateAndRenderCurre…
Browse files Browse the repository at this point in the history
…ntState`
  • Loading branch information
rust2 committed Aug 3, 2024
1 parent 9b2a305 commit 2a7eb57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/fluddokt/opsu/fake/StateBasedGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void addState(BasicGameState state)
// state.init(gc, this);
}

public void renderCurrentState() throws SlickException
public void updateAndRenderCurrentState() throws SlickException
{
int deltaTime = Opsu.getDeltaTime();

Expand Down
4 changes: 2 additions & 2 deletions core/src/itdelatrisu/opsu/Opsu.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public void render()
table.addActor(loadingLabel);
}
else
renderCurrentState();
updateAndRenderCurrentState();
} catch (SlickException e) {
e.printStackTrace();
error("SlickErrorRender", e);
Expand Down Expand Up @@ -334,7 +334,7 @@ public void pause()
//super.pause();
container.loseFocus();
try {
renderCurrentState(); // is really needed?
updateAndRenderCurrentState(); // is really needed?
} catch (SlickException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 2a7eb57

Please sign in to comment.