Skip to content

Commit

Permalink
simplify fun call
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDeeUx committed Jul 28, 2024
1 parent 7fbceb5 commit 0068e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const char* grabRandomQuote() {

class $modify(CCScheduler) {
void update(float dt) {
if (PlayLayer::get()) fps = (int)(CCScheduler::get()->getTimeScale() / dt) + 1;
fps = static_cast<int>(getTimeScale() / dt) + 1;
CCScheduler::update(dt);
}
};
Expand Down

0 comments on commit 0068e97

Please sign in to comment.