Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Jul 23, 2024
1 parent 1a2cd0d commit e4def27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Labels/Labels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ void StatusNode::update(float dt)
cps.erase(std::remove_if(cps.begin(), cps.end(), [](float i){ return i < 0; }), cps.end());

sLabels[8]->setString((cpsM->options[1]->enabled ? fmt::format("{} / {} CPS", cps.size(), totalClicks) : fmt::format("{} CPS", cps.size(), totalClicks)).c_str());
sLabels[9]->setString(bestRunPlayLayer->getRunString().c_str());

if (bestRunPlayLayer)
sLabels[9]->setString(bestRunPlayLayer->getRunString().c_str());

updateVis();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Labels/Labels.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class StatusNode : public CCNode
std::vector<float> cps;
int totalClicks = 0;

BestPlayLayer* bestRunPlayLayer;
Ref<BestPlayLayer> bestRunPlayLayer = nullptr;

std::string formatTime(float time) {
// Convert float time to milliseconds
Expand Down

0 comments on commit e4def27

Please sign in to comment.